I have a string $employee="Mr vinay HS,engineer,Bangalore";
. i want to store Mr vinay H S in $name
,engineer in $job
and Bangalore in $location
. how to do this
$record = explode(",",$employee);
$name = $record[0];
$job = $record[1];
$location = $record[2];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With