PHP 8.5.0 Alpha 1 available for testing

Voting

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

The Note You're Voting On

mv@NOSPAM
21 years ago
the best way to solve the problem with the last string added by chunk_split() is:

<?php
$string
= '1234';
substr(chunk_split($string, 2, ':'), 0, -1);
// will return 12:34
?>

<< Back to user notes page

To Top