Question and answer is powered by AnsPress.io
I want to get the first name from a full name, which name value stored in a PHP variable.
If my variable like that:
<?php $myname = 'Amit Biswas'; ?>
Here I want to display only Amit. How can I display first word of my name?
<?php echo "Amit"; ?>