daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.   $message  = "<destinataire1><destinataire2><groupe1> Test d'envoi d'un message au <groupe6>";
  4.   $lst_dest = substr($message, 0, stripos($message, "> ")+1);
  5.  
  6.   preg_match_all("/<(.*?)>/", $lst_dest, $destinataires);
  7.  
  8.   foreach($destinataires[1] as $destinataire)
  9.     echo $destinataire."<br />";
  10.  
  11. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top