skip to Main Content

How to split a variable using explode function in php – Shopify

I am trying to split string like below <?php $str = "Q:1) What is PHP?Opensource,cms,framework,webservice,opensource Q:2) What is Laravel?Opensource,cms,framework,webservice,framework Q:3) What is Wordpress?Opensource,cms,framework,webservice,framwork Q:4) What is Shopify?Opensource,cms,framework,webservice,framwork Q:5) What is Mangento?Opensource,cms,framework,webservice,framwork"; $ex = explode("Q:",$str); echo $ex[0]; It displays nothing

VIEW QUESTION
Back To Top
Search