![]() ![]() Suppose you have the following URL: https: //Code language: PHP ( php ) Output: string(3) "PHP" Code language: plaintext ( plaintext ) 2) Using the PHP trim() function to remove other characters Var_dump($new_str) Code language: PHP ( php ) The following example uses the trim() function to remove spaces from the beginning and the end of a string:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |