Removes whitespace (or other characters) from the right end of a string
chop() function நாம் கொடுக்கும் string-ல் right side-இல் உள்ள whitespaces மற்றும் predefined characters-ஐ remove செய்கிறது.
chop() Function in PHP
chop() function நாம் கொடுக்கும் string-ல் right side-இல் உள்ள whitespaces மற்றும் predefined characters-ஐ remove செய்கிறது.
chop()($string,characters);
Example1
<?php
$input = 'parallel codes php |';
echo chop($input);
?>
மேலே உள்ள Example1-ஐ கவனிக்கவும் chop() என்ற function-இல் $input என்ற variable-இல் 'parallel codes php |'; என்ற string argument-ஆக அனுப்பப்பட்டுள்ளது. இங்கு right side-இல் உள்ள whitespaces-ஐ remove செய்து parallel codes php | என்ற value- ஐ output -ஆக தருகிறது.
parallel codes php |
Example2
<?php
$str = 'string function php tamil*@';
echo chop($str,"*@");
?>
மேலே உள்ள Example2-ஐ கவனிக்கவும் chop() என்ற function-இல் $str என்ற variable-இல் 'string function php tamil*@' என்ற string மற்றும் "*@" என்ற predefined characters argument-ஆக அனுப்பப்பட்டுள்ளது எனவே chop function நாம் அனுப்பி உள்ள string-இல் "*@" என்ற predefined characters-ஐ remove செய்து string function php tamil output ஆக கொடுக்கிறது.
string function php tamil