forked from Seymaster/HNG_storm-task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlifenet.php
34 lines (29 loc) · 1.04 KB
/
lifenet.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
<?php
$datas = [
'firstname' => 'Meledje',
'lastname' => 'Gnagne Christian Armel',
'language' => 'PHP',
'ID' => 'HNG-05233',
];
function loadConsole ($datas)
{
$json = json_encode($datas);
echo '<script>
let datas = '.$json.'
console.log("Hello World, this is [" + datas.firstname + "] [" + datas.lastname + "] with HNGi7 ID [" + datas.ID + "] using [" + datas.language + "] for stage 2 task. [email protected]")
</script>';
return (object) $datas;
}
$datas = loadConsole($datas);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Team Storm</title>
</head>
<body>
<p>Hello World, this is [<?= $datas->firstname ?>] [<?= $datas->lastname ?>] with HNGi7 ID [<?= $datas->ID ?>] using [<?= $datas->language ?>] for stage 2 task. [email protected]</p>
</body>
</html>