forked from codigoconjuan/PHP_Introduction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
12_functions.php
46 lines (35 loc) · 1.32 KB
/
12_functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Introduction to PHP</title>
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,900&subset=latin-ext" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>Up & Running with PHP</h1>
<div class="code-content">
<?php
$fruits = array('apple', 'orange', 'melon', 'banana', 'pear');
echo count($fruits);
echo "<br/>";
$my_name = "Juan Pablo De la torre Valdez";
$my_name2 = str_replace(' ', '', $my_name);
echo strlen($my_name2);
echo "<br/>";
echo strtoupper($my_name);
echo "<br/>";
echo strtolower($my_name);
$password = "dadadadadadafgadiaijaidjads";
echo "<br/>";
if(strlen($password) < 6) {
echo "password is weak";
} else {
echo "password is strong";
}
?>
</div>
</div>
</body>
</html>