Javascript toString(36) in PHP -
is there php
way below javascript
code:
var val = 100; val.tostring(36);
i trying pass values generated via javascript
, verify php
.
update
after googling think php
base_convert
way go not know use in frombase
, tobase
params.
base_convert
indeed need. $from_base base original number in (which base 10) , $to_base want (which base 36) goes this:
$val = "100"; base_convert( $val, 10, 36 );
Comments
Post a Comment