Değişkenlerin bir diziye bu patlayabilir nasıl?

0 Cevap php

Zaten $ tmp br patlamak için bir yerde şu var ..

  $tmp = explode('<br>', $tmp);
  echo $tmp[0];
  echo "<br>";
  echo $tmp[1];

Now, in $tmp[0] there is a bunch of text, separated by a pipeline "|". ie: word1|word2|word3|word4|word5 take notice, the last once doesn't end in a pipeline..

Nasıl [0], metnin her bit kapmak bir diziye bunları açmak, yani $ tmp patlayabilir: $ pipetxt [0], $ pipetxt [1], vb boru hatları olmadan ..

Ben yukarıda oluştuktan sonra, yukarıdaki gibi aynı yapmak .. ama gidebilir;

$pipetxt = explode('|', $tmp[0]);
echo $pipetxt[0];
echo "<br>";
echo $pipetxt[1];

Teşekkür ederiz!

0 Cevap