I have an array in for format as below (consol.log in browser). How would I iterate the array in php?

```
stdClass Object
(
    [SIEcat7] => stdClass Object
        (
            [text] => test1
            [amount] => 1 000.00

        )

    [SIEcat8] => stdClass Object
        (
            [text] => test2
            [amount] => 0.00

        )

)

```
['https://Stackoverflow.com/questions/55196362', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/712430/']
When use `find_package(XXX)`, it can work in two modes: *MODULE* and *CONFIG*. And resulted variables and targets of this call **depend on the mode**.

If `FindXXX.cmake` file exists (and can be found), the *MODULE* mode is used and given file is processed. Otherwise, if the package is shipped with `XXXConfig.cmake` file, *CONFIG* mode is used and given file is processed. If none of this file exists, CMake emits an error (if called with *REQUIRED* keyword) or a warning (without *REQUIRED* keyword).

In case of `gtest` package, CMake is shipped with `FindXXX.cmake` script, so this script is processed in *MODULE* mode. You may find description of this script in the [documentation](https://cmake.org/cmake/help/v3.6/module/FindGTest.html), which tells that you need to use `GTest::GTest` target for link with gtest:

```
target_link_libraries(main GTest::GTest)

```
Not all packages provide a CMake library definition. If you're lucky, then `vcpkg install` will show you the name:

```
$ ./vcpkg install openssl

The package openssl is compatible with built-in CMake targets:

    find_package(OpenSSL REQUIRED)
    target_link_libraries(main PRIVATE OpenSSL::SSL OpenSSL::Crypto)

```

This will work even if you've already installed the package, so you can use it anytime to query the package name.

On the other hand, if `vcpkg install <pkg>` doesn't say anything about CMake, then you need to include it manually in your CMake file, by finding the `include` path and the `library` files.

Here is an example of such a case, here for the `live555` library:

```
# Use one of the headers to locate the include location
find_path(LIVE555_INCLUDE_DIR liveMedia.hh)

# Find the libraries
find_library(LIVE555_LIBRARY1 liveMedia)
find_library(LIVE555_LIBRARY2 groupsock)
find_library(LIVE555_LIBRARY3 BasicUsageEnvironment)
find_library(LIVE555_LIBRARY4 UsageEnvironment)

add_executable(rtsp testRTSPClient.cpp)
target_include_directories(rtsp PRIVATE ${LIVE555_INCLUDE_DIR})
target_link_libraries(rtsp PRIVATE ${LIVE555_LIBRARY1} ${LIVE555_LIBRARY2} ${LIVE555_LIBRARY3} ${LIVE555_LIBRARY4})

```