[Solved] Removing all characters before certain string [duplicate]

[ad_1]

There is a php built in for doing this: strstr

Combine with substr to strip out your token:

$out = substr(strstr($text, 'ABC'), strlen('ABC'))

2

[ad_2]

solved Removing all characters before certain string [duplicate]