J'ai une colonne longtext dans mysql db et je veux l'expliquer en tableau. Mais exploser me renvoie seulement 1 chaîne.Explose un longtext en tableau
$temp_array_links[] = $item->links; //array value: http://google.com/ http://test.com/ http://test1.com/
$temp_string = implode(" ", $temp_array_links); //convert array to string
$info_array_links = explode(" ", $test_string); //explode string
echo 'Your link: <a href="'. $info_array_links[$user_id--] .'">LINK</a>'; //should be http://google.com/ insted of http://google.com/ http://test.com/ http://test1.com/
Ce n'est pas une question mysql. – shmosel
tableau (1) {[0] => chaîne (58) "http://google.com/ http://test.com/ http://test1.com/"} – GONGOTA