Im new here. I need help with php.
$FullDescriptionLine = Model 23MP48HQ-P|23"|Panel IPS|Resolution 1920x1080|Form factor 16:9|
how can i get 23"
out of that string?
Thank you Martin
Im new here. I need help with php.
$FullDescriptionLine = Model 23MP48HQ-P|23"|Panel IPS|Resolution 1920x1080|Form factor 16:9|
how can i get 23"
out of that string?
Thank you Martin
Use PHP's explode
function to split the string on pipes (|
), then get the second index (1
in computer indexes) of that array.
$FullDescriptionLine = 'Model 23MP48HQ-P|23"|Panel IPS|Resolution 1920x1080|Form factor 16:9|';
echo explode('|', $FullDescriptionLine)[1];