string base_convert ( string number, int frombase, int tobase) can take base values from 2 to 36. 36 is the highest (z) So I wanted to know the largest possible binary value for this (Yes this can be done mathematically too) and tried :
Code: Select all
<?php
$data="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"; // 36 z's - largest number
$dest=base_convert($data,36,2); // Binary representation
echo $dest;
?>On the other hand if I convert it dec or hex it shows up.
Is it the memory limitation of 64 bytes ? I was hoping string would handle more.
Any ideas ?