bitflipper

The Contact Form 7 - Infusionsoft Add-on bitflipper function.

Description

bitflipper( $m ); 

Parameters (1)

0. $m
The m.

Usage

  1. if ( !function_exists( 'bitflipper' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/server/server.php'; 
  3.  
  4. // The m. 
  5. $m = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bitflipper($m); 
  9.  

Defined (1)

The function is defined in the following location(s).

/src/xmlrpc-3.0/demo/server/server.php  
  1. function bitflipper($m) 
  2. global $xmlrpcArray; 
  3.  
  4. $v=$m->getParam(0); 
  5. $sz=$v->arraysize(); 
  6. $rv=new xmlrpcval(array(), $xmlrpcArray); 
  7.  
  8. for($j=0; $j<$sz; $j++) 
  9. $b=$v->arraymem($j); 
  10. if ($b->scalarval()) 
  11. $rv->addScalar(false, "boolean"); 
  12. else 
  13. $rv->addScalar(true, "boolean"); 
  14.  
  15. return new xmlrpcresp($rv);