$str=\':this is a applepie :) \';
How to use PHP, Remove the first character :
:
To remove every : from the beginning of a string, you can use ltrim:
$str = '::f:o:'; $str = ltrim($str, ':'); var_dump($str); //=> 'f:o:'