remove the first character to the left of a string

hi,
How do i remove the left most character from a string?
markmchughAsked:
Who is Participating?
 
hernst42Connect With a Mentor Commented:
echo substr($string, 1);
0
 
kszurekCommented:

<?PHP
$a = 'test';
echo substr($a, 1);

Open in new window

0
 
hernst42Commented:
http://www.php.net/substr
echo substr('abcdef', 1);     // bcdef
0
 
zacheraCommented:
[code]<?php
echo substr($string,1);
?>[/code]
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.