Aspects


vs


Explode

Explode() is a PHP function that splits a string based on a delimiter, returning an array.

Substr

A function/method that returns part of a string

Others

Quality Example
Slightly faster

"Just wanted to add that using strrpos + substr is slightly faster than explode + end"

from question "How do I use PHP namespaces with autoload?"

Back to Home
Data comes from Stack Exchange with CC-BY-SA-3.0