PHP 8.5.0 Beta 1 available for testing

Voting

: min(zero, two)?
(Example: nine)

The Note You're Voting On

pestilenc at hotmail dot com
23 years ago
For me this worked.
$string = 'help';

#First, str_pad() with unique character.
$string = str_pad($string, 10, "*", STR_PAD_BOTH);
#$string = '***help***';

#Second, str_replace with ' '
$string = str_replace("*", " ", $string);

<< Back to user notes page

To Top