Answers for "php get last slash from string"

PHP
24

php remove last character in string

//Remove the last character using substr
$string = substr($string, 0, -1);
Posted by: Guest on April-02-2020
0

php remove slashes from json

echo stripslashes('{\"test\":{\"test1\":{\"test1\":[{\"test2\":\"1\",\"test3\": \"foo\",\"test4\":\"bar\",\"test5\":\"test7\"}]}}}');
Posted by: Guest on October-02-2020

Code answers related to "php get last slash from string"

Browse Popular Code Answers by Language