|
|
Question : Sort elements after explode in php
|
|
|
|
Hello Experts!
I get just two elements after 'explode', but not sure how to sort them, I have this:
$no="211/09"; $each = explode("/",$no);
and I need a code to get this: $x1=211; $x2=09;
Thanks for any help
|
|
|
|
Answer : Sort elements after explode in php
|
|
|
|
Simply this: <? $x1 = $each[0]; $x2 = $each[1]; ?>
Bye
|
|
|
|
|