View difference between Paste ID: pCWh5zDD and xQ5cmDFr
SHOW: | | - or go back to the newest paste.
1
SimpleXMLElement Object
2
(
3
[contact] => SimpleXMLElement Object
4
    (
5
        [name] => Some guy
6
        [number] => **********
7
    )
8
9
[messages] => SimpleXMLElement Object
10
    (
11
        [msg] => Array
12
            (
13
                [0] => SimpleXMLElement Object
14
                    (
15
                        [from] => Some guy
16
                        [message] => Hey
17
                        [5] => SimpleXMLElement Object
18
                            (
19
                            )
20
21
                    )
22
23
                [1] => SimpleXMLElement Object
24
                    (
25
                        [from] => Qasim Iqbal
26
                        [message] => Hows it going?
27
                    )
28
29
                [2] => SimpleXMLElement Object
30
                    (
31
                        [from] => Some guy
32
                        [message] => Not bad... just doing some homework
33
                    )
34
35
                [3] => SimpleXMLElement Object
36
                    (
37
                        [from] => Some guy
38
                        [message] => Im just kidding I'm playing games
39
                    )
40
41
                [4] => SimpleXMLElement Object
42
                    (
43
                        [from] => Qasim Iqbal
44
                        [message] => lol...
45
                    )
46
47
            )
48
49
    )
50
51
)
52
	
53
[msg] => Array
54
        (
55
            [0] => SimpleXMLElement Object
56
                (
57
                    [from] => Some guy
58
                    [message] => Hey
59
                )
60
61
            [1] => SimpleXMLElement Object
62
                (
63
                    [from] => Qasim Iqbal
64
                    [message] => Hows it going?
65
                )
66
67
            [2] => SimpleXMLElement Object
68
                (
69
                    [from] => Some guy
70
                    [message] => Not bad... just doing some homework
71
                )
72
73
            [3] => SimpleXMLElement Object
74
                (
75
                    [from] => Some guy
76
                    [message] => Im just kidding I'm playing games
77
                )
78
79
            [4] => SimpleXMLElement Object
80
                (
81
                    [from] => Qasim Iqbal
82
                    [message] => lol...
83
                )
84
85
            [5] => SimpleXMLElement Object
86
                (
87
                    [from] => Some guy
88
                    [message] => what are you laughing at?
89
                )
90
91
        )
92
	
93
$chat->messages->msg->addChild(sizeof($chat->messages->msg));