venomous0x / WhatsAPI

Interface to WhatsApp Messenger
2.59k stars 2.14k forks source link

how do I get the return function??? #1103

Open andre-ab opened 9 years ago

andre-ab commented 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????);

mgp25 commented 9 years ago

This repo is inactive, use WhatsAPI Official instead: https://github.com/mgp25/WhatsAPI-Official

Regards