Press "Enter" to skip to content

chop

PHP Chop function

This function remove the last character in the string.

Example for PHP Chop function

<?php
echo chop(“WebMaster “);//right spaces are remove
echo chop(“Webmaster”, “a..z”);
?>