Open andre-ab opened 9 years ago
function GetGroups($mynumber, $groups) { /* $i = 0; $grupos = ""; foreach ($groups as $gg) { $grupos .= $i."°)". 'IDG: '. $gg['id'].''. 'ID: '. $gg['owner'].''. 'Criado em: '.date("d/m/Y G:i:s", $gg['creation']).''. 'Nome: '. $gg['subject'].''. 's_t: '. $gg['s_t'].''. 's_o: '. $gg['s_o'].''; } echo utf8_decode($grupos); //show*/ return ($grupos) //get the return??? }
$w->eventManager()->bind("onGetGroups", "GetGroups"); $w->Connect(); $w->LoginWithPassword($password); $w->sendGetGroups();
print_r(return function????);
This repo is inactive, use WhatsAPI Official instead: https://github.com/mgp25/WhatsAPI-Official
Regards
function GetGroups($mynumber, $groups) { /* $i = 0; $grupos = ""; foreach ($groups as $gg) { $grupos .= $i."°)". 'IDG: '. $gg['id'].'
'. 'ID: '. $gg['owner'].'
'. 'Criado em: '.date("d/m/Y G:i:s", $gg['creation']).'
'. 'Nome: '. $gg['subject'].'
'. 's_t: '. $gg['s_t'].'
'. 's_o: '. $gg['s_o'].'
'; } echo utf8_decode($grupos); //show*/ return ($grupos) //get the return??? }
$w->eventManager()->bind("onGetGroups", "GetGroups"); $w->Connect(); $w->LoginWithPassword($password); $w->sendGetGroups();
print_r(return function????);