I thought trim() removes spaces from start and end of a string Only.
So trim is of no use to me.
My whole purpose is to Explode the string using One Space Sharacter.
$allparts = explode(" " , $input_string) ;
This works fine if there is Only one Sapce Character in between the string, but fails for multiple space characters in between.
I don't get all the components in the right order in $allparts array.
Any other solution ?
Thanks.