mysql_escape.php 323 B

12345678910111213141516
  1. <?php
  2. go(function(){
  3. $swoole_mysql = new \Swoole\Coroutine\MySQL();
  4. $swoole_mysql->connect([
  5. 'host' => '127.0.0.1',
  6. 'port' => 3306,
  7. 'user' => 'root',
  8. 'password' => 'root',
  9. 'database' => 'test',
  10. ]);
  11. $res = $swoole_mysql->escape("");
  12. var_dump($res);
  13. });