Bonjour
Je galère pas mal pour récupérer la valeur qui m'interresse lors d'un var_dump: il s'agit de la valeur dans le tableau [1]
["_raw_data"]=>(array 6 )->[1]-> "64 bytes from 192.168.0.6: icmp_seq=1 ttl=64 time=3.90 ms"
ci dessous le résultat du var_dump :
Merci par avance
Cdt
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
47
48
49
50
51
52 ***************************************** object(Net_Ping_Result)#9 (11) { ["_icmp_sequence"]=> array(1) { [1]=> float(3.9) } ["_target_ip"]=> string(11) "192.168.0.6" ["_bytes_per_request"]=> int(64) ["_bytes_total"]=> int(64) ["_ttl"]=> int(64) ["_raw_data"]=> array(6) { [0]=> string(52) "PING 192.168.0.6 (192.168.0.6) 56(84) bytes of data." [1]=> string(57) "64 bytes from 192.168.0.6: icmp_seq=1 ttl=64 time=3.90 ms" [2]=> string(0) "" [3]=> string(35) "--- 192.168.0.6 ping statistics ---" [4]=> string(59) "1 packets transmitted, 1 received, 0% packet loss, time 0ms" [5]=> string(49) "rtt min/avg/max/mdev = 3.906/3.906/3.906/0.000 ms" } ["_sysname"]=> string(5) "linux" ["_round_trip"]=> array(4) { ["min"]=> float(3.906) ["avg"]=> float(3.906) ["max"]=> float(3.906) ["stddev"]=> float(0) } ["_transmitted"]=> int(1) ["_received"]=> int(1) ["_loss"]=> int(0) } ***************************************
Partager