2
I get a variable that way:
$VAR = "joao.silva/jose.ferreira/maria.jose/carlos.eduardo/";
and I need to store it this way:
$VET = array('joao.silva', 'jose.ferreira', 'maria.jose', 'carlos.eduardo');
Someone could help me manipulate that information to save it that way?
I do not understand what is your difficulty, the function explodes that indicated returns the result you want. Just use explode("/", $string_a_manipulate);
– lazyFox
@lazyFox there is no problem in answering the question explaining the use of the function explodes, including ha my view none of the answers below effectively answers Rafael’s question, the question even this bad formulated.... starting that this is not an accepted php variable:
$VAR = joao.silva/jose.ferreira/maria.jose/carlos.eduardo/
– MarceloBoni
Do not blame your misinterpretation on the author, so much so that the doubt has already been solved and posted :)
– Rafael Brito