One of my variable in my PHP script produce strings like:
'something/test/1'
I want to split that kind of strings through the keyword / and then assign those parts to an array in PHP by using preg_match or something else.
The output should look like:
array(
'0' => 'something',
'1' => 'test,
'2' => '1'
);
explode()