PHP 8.5.0 Alpha 1 available for testing

Voting

: max(one, seven)?
(Example: nine)

The Note You're Voting On

dzek dot remove_this at dzek dot eu
13 years ago
Guys, if += 0 is producing wrong values sometimes, and preg_replace is cpu consuming, then just stick to the main function described on that page, and use:
<?php
$value
= ltrim($value, '0');
?>
should be the fastest and most reliable.
I think all those comments can be misleading for begginers checking this page - it's sort of using magic tricks to reinvent the wheel.

<< Back to user notes page

To Top