I have this explode (with list):
$dm = "blablabla.ff";
list($d, $l) = explode('.', $dm, 2);
Now, i want the explode will cut the string only if the string contains .
because the list will return error if the string not contains .
, error like this: Undefined offset: 1
.
How can i do this short way?