Josh Time | Joshua Li

TAG | alternative

Jan/10

9

Faster alternative to settype()

I was working on Coal Games today and then I looked up settype. michaltrutman wrote this on http://php.net/manual/en/function.settype.php. You can change variable type also in another way instead of using function settype(). You can change variable type also in another way instead of using function settype(). <?PHP $a = ’125′; //$a is string var_dump($a); $a [...]

· ·

While I was coding today, I tried to use the function mysqli_fetch_all on my PHP 5.2 installation. Unfortunately, this function only works on PHP 5.3 and above since it uses the new mysqlnd driver. I had to come up with a pseudo alternative to the function mysqli_fetch_all. The following is the code I came up [...]

· · · · · ·

Theme Design by devolux.nh2.me