$string = "0482632351|8745"; $arraycad = explode($string,"|"); $variable1 = $arraycad[0]; $variable2 = $arraycad[1];