Toggle navigation
FORUM
Categories
Discussions
Sign In
Home
›
Developers
What is the chop() function in PHP?
Siddhi_Patel
October 2019
in
Developers
What is the chop() function in PHP?
Comments
Amy
Checkfront
October 2019
Hi Siddhi_Patel,
Thanks for reaching out!
The chop() function is used to remove the whitespaces and other predefined characters from the right side of a string.
If you're interested in learning more about PHP's chop() function, here's a great article I found:
https://www.w3resource.com/php/function-reference/chop.php
Hopefully, this helps! Please don't hesitate to reach out to support@checkfront.com if you have any other questions.
Take care,
Amy
Technical Support Specialist
Checkfront |
www.checkfront.com/contact
| Email: support@checkfront.com
anand9796
January 2020
Remove characters from the right end of a string
Syntax : chop(
string,
char list
)
The following is the example of chop()
https://www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_chop
Laz7zaro
March 2020
This function is an alias of rtrim() function. The string that will be trimmed. Specifies which character to remove from the string.
Sign In
or
Register
to comment.
Comments
Thanks for reaching out!
The chop() function is used to remove the whitespaces and other predefined characters from the right side of a string.
If you're interested in learning more about PHP's chop() function, here's a great article I found: https://www.w3resource.com/php/function-reference/chop.php
Hopefully, this helps! Please don't hesitate to reach out to support@checkfront.com if you have any other questions.
Take care,
Amy
Technical Support Specialist
Checkfront | www.checkfront.com/contact | Email: support@checkfront.com
Syntax : chop(string,char list)
The following is the example of chop()
https://www.w3schools.com/php/phptryit.asp?filename=tryphp_func_string_chop