Tuto variable premier commit
This commit is contained in:
20
Variables/operation_de_nombres.php
Normal file
20
Variables/operation_de_nombres.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
function strlen(string $str, int $count) : int
|
||||
{
|
||||
return count($str);
|
||||
}
|
||||
|
||||
|
||||
|
||||
echo strlen("salut");
|
||||
|
||||
|
||||
$var = 'endmove';
|
||||
|
||||
hello('endmove');
|
||||
|
||||
function hello(string $pseudo = 'endmove') : string
|
||||
{
|
||||
$pseudo = 'endmove'
|
||||
}
|
||||
Reference in New Issue
Block a user