Javascript's .toString(16) in PHP

Viewed 5040

I'd like to do the same as JavaScript's .toString(16) but in PHP :

var n = 200000002713419;
console.log(n.toString(16));

This returns b5e6211de74b. How can I achieve the same with PHP ?

Thanks a lot.

1 Answers
Related