Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1573 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  [PHP] fonction split et exp reg

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[PHP] fonction split et exp reg

n°439005
ajnag
where no man has gone before
Posté le 25-06-2003 à 14:24:01  profilanswer
 

salut.
 
j'arrive pas a utiliser split pour que le separateur soit '[' ou ']'
 

Code :
  1. <?php
  2. $str="test[err]test";
  3. echo "chaine de départ : $str <br><br>";
  4. echo "apres traitement : <br>";
  5. $result = split("[\[.\]]",$str);
  6. echo $result[0]."<br>";
  7. echo $result[1]."<br>";
  8. echo $result[2];
  9. ?>


 
je voie pas ce qui cloche :??:


---------------
Chasser sans bière c'est comme... pêcher sans bière.
mood
Publicité
Posté le 25-06-2003 à 14:24:01  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  [PHP] fonction split et exp reg

 

Sujets relatifs
pitit script PHP[PHP] Ping d'un nom Netbios en PHP
Fonction équivalente au decode de Oracle?[ PHP ] Notice: Use of undefined constant nom - assumed 'nom'
[PHP] utilité de isset?[PHP] Insertion news ds BDD
[MySQL (PHP)] empêcher un NOW sur un champ quand on update un enregist[PHP] fetch_array ou fetch_object
[PHP] Comment gérer une chaîne avec des guillemets ??Fonction SaveToFile
Plus de sujets relatifs à : [PHP] fonction split et exp reg


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR