摘要:
<?php$str = "abc:def:hij";$arr = explode(':',$str);echo '<pre>';echo '成功<br>';var_dump($arr);echo '</pre>';$str = "abcdefhij";$arr = explode(':',$str);echo '<pre>';echo 'no成功<br>';var_dump($a 阅读全文
摘要:
<?php$link = new mysqli('localhost', 'root','123','test');$sql = 'select uName from userInfo';$a = $link->query($sql);echo '<pre>';echo '有结果集<br>';var_dump($a);echo '</pre>';$sql = "insert into userInfo valu 阅读全文
摘要:
Anonymous (24-Apr-2010 05:43)The mysqli_close() function and object method only remove the ability to use the mysql object again in the script, essentially on the surface only nulling out all object parameters.过程化的mysqli_close()函数和面向对象的方法调用只是不让用户在此后的脚本中再使用mysql对象,基本上只在表面上归零所有对象参数At least with PHP5.3 阅读全文