How to get string after a symbol

Solution 1:

Or using explode :

$array = explode(' > ', $data['subject']);
echo $array[0]; // Languages
echo $array[1]; // English

Solution 2:

https://php.net/substr

$subject = substr($data['subject'], strpos($data['subject'], "> "));

But you should have a look at explode : https://php.net/explode

$levels = explode(" > ", $data['subject']);
$subject = $levels[0];
$language = $levels[1];