CakeFest 2025 Madrid: The Official CakePHP Conference

Voting

: nine minus seven?
(Example: nine)

The Note You're Voting On

Anonymous
23 years ago
If you would like to remove characters from the start or end of a string, try the substr() function.

For example, to remove the last three characters from a string:
$string = "To be or not to be.";
$string = substr ($string, 0, -3);

<< Back to user notes page

To Top