-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.php
More file actions
46 lines (42 loc) · 802 Bytes
/
Copy pathtest.php
File metadata and controls
46 lines (42 loc) · 802 Bytes
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
<?php
/**
* Created by PhpStorm.
* User: shehbaz
* Date: 2/16/15
* Time: 9:09 PM
*/
$arr=array(
array(
"name"=>"Dashboard",
"url"=>"dash/a.html"
),
array(
"name"=>"Setting",
"url"=>"setting/a.html"
),
array(
"name"=>"Tool",
"url"=>"tool/a.html"
)
);
echo "var dump </br>";
var_dump($arr);
echo " </br> export</br>";
var_export($arr);
echo " </br> print</br>";
print_r($arr);
echo "</br>";
echo "</br>";
echo "</br>";
$con=mysqli_connect("localhost","root","root","task1");
$query=mysqli_query($con,"select *from users");
while($row=mysqli_fetch_assoc($query)):
var_dump($row);
endwhile;
echo "</br>";
echo "</br>";
echo "</br>";
foreach($arr as $row){
echo $row["name"].": ". $row["url"];
echo "</br>";
}