iZerang

Separar ID com _

Jul 12th, 2014
30,343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. /* Function */
  2. public function passarU($var)
  3.  {
  4.     $retorna = explode( '_', $var );
  5.     return($retorna[0]);
  6.  }
  7.  
  8. /* Array */
  9. public $Adms = array('96218942');
  10.  
  11. /* Como chamar a function */
  12. if (!in_array($msg['u'], $this->Adms)) {return $this->send('<p u="'.$msg['u'].'" t="Não permitido." d="'.$msg['u'].'" />' ); }
  13.  
  14. /* By iZerang */
Advertisement
Add Comment
Please, Sign In to add comment