DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+4 =
Submit