LoginSignup
1
0

More than 5 years have passed since last update.

php strlen, str_word_count

Posted at

문서의 길이

qiita.rb
<?php
echo strlen("Hello world!"); 
?> 

공백 포함

qiita.rb
<?php
echo str_word_count("Hello world!"); // outputs 2
?>

Syntax

qiita.rb
define(name, value, case-insensitive)

<?php
define("GREETING", "Welcome to W3Schools.com!");
echo GREETING;
?>

<?php
define("GREETING", "Welcome to W3Schools.com!", true);
echo greeting;
?>

<?php
define("GREETING", "Welcome to W3Schools.com!");

function myTest() {
    echo GREETING;
}
myTest();
?>
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0