multiple insert to php database

0

I am creating a link shortener and wanted to put a multiple insert of type link the person places multiple links in an input separating each link with% or another character and each did qo php read% it from a new insert already tried several things but n get someone can help me

    
asked by anonymous 25.04.2018 / 16:48

1 answer

2

tried with function explode?

<?php
$campo = "link1%link2%link3";
$retorno= explode("%", $campo);
 echo $retorno[0]"<br>".$retorno[1]"<br>".$retorno[2];
?>

A string ira retornar o seguinte valor:
link1
link2
link3
    
25.04.2018 / 17:06