post icon

How to remove part of string after certain character in php?

$title = array_shift(explode(‘_’, $title));
where $title is string having complete text including ‘_’ , so it will remove any thing after ‘_’ including ‘_’.

Comments are closed.

Leave a comment