Hi there,
In PERL you can chop a last character from a string by chop($string); in PHP this just gets rid of the white space... how can I do this efficiently in PHP?
Thanks
Hi,
try something like this:
$a = "something"; $b = substring($a,0,strlen($a)-1);
Second line should be:
$b=substr($a,0,strlen($a)-1);
:)
Thanks for you help!
Oops,
sorry (I wrote what I thought not what the correct syntax was).
Greetings, Thomas 🙂