0
I have 2 arrays, where one is an array with the names and the other is an array with the ids. I need that according to the name of the string (which it contains in the $name array), it searches in the id array, the corresponding id, eg:
$nome=array('a','b','c');
$id=array('1','2','3');
$caracnome='b';
There I need, in this example, to bring for example the variable $caracid = '2'
, because 'b' is the second value of the $name array and the second value of the $id array is 2.
show, thanks, that’s right!!
– Leandro Marzullo