Answers for "How to print a space in php"

PHP
11

how to check php string length

<?php
$name = 'abcdef';
echo strlen($str); // 6

$string = ' ab cd ';
echo strlen($str); // 7
?>
Posted by: Guest on August-24-2020
0

php string replace space

$journalName = preg_replace('/\s+/', '_', $journalName);
Posted by: Guest on February-05-2021

Code answers related to "How to print a space in php"

Browse Popular Code Answers by Language