I have the following line:
[0;50]
I have the following preg_match
preg_match('/([0-9]+)/',$price,$ranges);
I want to extract the 0 and the 50 in an array like this
Array(
[0] => 0,
[1] => 50
)
How can i do this?
I have the following line:
[0;50]
I have the following preg_match
preg_match('/([0-9]+)/',$price,$ranges);
I want to extract the 0 and the 50 in an array like this
Array(
[0] => 0,
[1] => 50
)
How can i do this?