update page now

Voting

: min(eight, four)?
(Example: nine)

The Note You're Voting On

JumpIfBelow
10 years ago
If you are searching for a function that does the same trick as chop in PERL, then you should just do the following code:
<?php
   $str = substr($str, 0, -1);
?>

The question is: why isn't chop() an alias of the code above, rather than something which will trap developpers?

<< Back to user notes page

To Top