Bonjour,
J'ai besoin de manipuler le contenu d'une chaine
Mais au final cela m'affiche $tagData et non pas le contenu
Débutant en php
merci
ludo[/code]
J'ai besoin de manipuler le contenu d'une chaine
Code:
$storeoffer->stock_description[0]->tagData
if($show_stock_message==true){echo'<td align="center" valign="middle">'.$storeoffer->stock_description[0]->tagData.'</div></td>';
'.$storeoffer->stock_description[0]->tagData.' m'affiche bien un contenu
je comptais donc mettre cette ligne dans une variable
$tagData ="$storeoffer->stock_description[0]->tagData";
pour manipuler cette chaîne:
$in = array('à', 'á', 'â', 'ô', 'è', 'é', 'ê', 'î', 'ù', 'ú','û');
$out = array('à ', 'á ', 'â ', 'ô ', 'è ', 'é ', 'ê ', 'î ', 'ù ', 'ú ','û ');
$tagData = str_replace($in, $out, $tagData);
if($show_stock_message==true){echo'<td align="center" valign="middle"> <div class="api_store_promo">$tagData</div></td>';}
Débutant en php
merci
ludo[/code]