get specific word from string php

42

$myString = "input/name/something";

$strArray = explode('/',$myString);
$name = $strArray[1];
$something = $strArray[2];

Comments

Submit
0 Comments