EmmaPHP: createGroups()

Create one or more new member groups in Emma.

Arguments: 

  • string or array of strings $group_names - The names of the new group(s)

Use:


require_once('../../MyEmmaPHP.php');

try {

	$me = new MyEmmaPHP();
	
	/*
	** Adding a single group
	*/
	$retval = $me->createGroups('Annoying People');
	print_r($retval);
	
	/*
	** Adding an array of groups
	*/
	$new_group_names = array('Silly People', 'Smart People');
    
    $retval = $me->createGroups($new_group_names);
	print_r($retval);
	    
} catch ( Exception $e ) {
    echo $e->getMessage() . "\n\n";
}



Wrapper for: create_groups

Keep in Touch

Contact Us

Buzz

Loading...

People talking about '@synergycode':