R
R
rafaelSalihov2019-11-06 12:50:24
PHP
rafaelSalihov, 2019-11-06 12:50:24

How to remove elements from an array?

How to display values ​​from [word] and [url] from given array in php couldn't find function?

stdClass Object
(
    [current_page] => 1
    [per_page] => 25
    [last_page] => 1
    [data] => Array
        (
            [0] => stdClass Object
                (
                    [word] => сколько плиток в упаковке 30х30
                    [url] => /skolko-plitok-v-upakovke/
                    [pos] => 2
                    [ws] => 95
                    [wsk] => 23
                    [docs] => 64
                    [avbid] => 37.44
                    [numwords] => 5
                    [adscnt] => 0
                    [isgeo] => 0
                    [isquest] => 1
                    [nw] => 0
                    [delta] => 1
                    [churl] => 0
                    [nl] => 1
                )

            [1] => stdClass Object
                (
                    [word] => сколько плитки в упаковке 30 на 30
                    [url] => /skolko-plitok-v-upakovke/
                    [pos] => 3
                    [ws] => 154
                    [wsk] => 13
                    [docs] => 15300000
                    [avbid] => 46.8
                    [numwords] => 7
                    [adscnt] => 0
                    [isgeo] => 0
                    [isquest] => 1
                    [nw] => 0
                    [delta] => 0
                    [churl] => 0
                    [nl] => 1
                )

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Bro, 2019-11-07
@ssenj

I advise you to read the book "PHP7 in the original"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question