Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove everything after a specific character

$str = 'Posted On April 6th By Some Dude';
echo strtok($str, 'By'); // Posted On April 6th
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #remove #specific #character
ADD COMMENT
Topic
Name
6+1 =