encode() публичный статический Метод

Encode the data into its native format.
public static encode ( mixed $data, string $table = null, boolean $pma = false ) : string
$data mixed
$table string
$pma boolean
Результат string
Пример #1
0
 public function testEncode()
 {
     $ary = array(array('Name' => 'Test1', 'Num' => 1), array('Name' => 'Test2', 'Num' => 2));
     $x = Xml::encode($ary);
     $this->assertContains('<Name>Test1</Name>', $x);
     $x = Xml::encode($ary, 'users', true);
     $this->assertContains('<table name="users">', $x);
 }