title: how to echo data from this string with php
body: <p>I want to extract the items I wanted from the following string
  <strong>And I'm going to do this with PHP</strong>
  Can anyone help me with this?</p>
  <p>my string :</p>
  <pre><code>    google.search.cse.api7456({
        &quot;cursor&quot;: {
          &quot;currentPageIndex&quot;: 0,
          &quot;estimatedResultCount&quot;: &quot;2570000000&quot;,
          &quot;moreResultsUrl&quot;: &quot;http://www.google.com/&quot;,
          &quot;resultCount&quot;: &quot;2,570,000,000&quot;,
          &quot;searchResultTime&quot;: &quot;0.36&quot;,
          &quot;pages&quot;: [
            {
              &quot;label&quot;: 1,
              &quot;start&quot;: &quot;0&quot;
            },
            {
              &quot;label&quot;: 2,
              &quot;start&quot;: &quot;20&quot;
            },
            {
              &quot;label&quot;: 3,
              &quot;start&quot;: &quot;40&quot;
            },
            {
              &quot;label&quot;: 4,
              &quot;start&quot;: &quot;60&quot;
            },
            {
              &quot;label&quot;: 5,
              &quot;start&quot;: &quot;80&quot;
            }
          ]
        },
        &quot;context&quot;: {
          &quot;title&quot;: &quot;Web Search&quot;,
          &quot;total_results&quot;: &quot;0&quot;
        },
        &quot;results&quot;: [
          {
            &quot;cacheUrl&quot;: &quot;http://www.google.com/search?q=cache:ZQh_B4K4VhQJ:www.php.net&quot;,
            &quot;clicktrackUrl&quot;: &quot;https://www.google.com/url?client=internal-element-cse&amp;cx=partner-pub-9134522736300956:4140494421&amp;q=https://www.php.net/manual/en/book.phar.php&amp;sa=U&amp;ved=2ahUKEwitgb3goN3vAhXS8LsIHedyCqwQFjAAegQIARAB&amp;usg=AOvVaw18842X_9SqFEhhaIwQBHac&quot;,
            &quot;content&quot;: &quot;... Convert a phar \u003cb\u003earchive\u003c/b\u003e to a non-executable tar or zip file; Phar::\nconvertToExecutable — Convert a phar \u003cb\u003earchive\u003c/b\u003e to another executable phar \n\u003cb\u003earchive\u003c/b\u003e file format&amp;nbsp;...&quot;,
            &quot;contentNoFormatting&quot;: &quot;... Convert a phar archive to a non-executable tar or zip file; Phar::\nconvertToExecutable — Convert a phar archive to another executable phar \narchive file format ...&quot;,
            &quot;title&quot;: &quot;Phar - Manual - PHP&quot;,
            &quot;titleNoFormatting&quot;: &quot;Phar - Manual - PHP&quot;,
            &quot;formattedUrl&quot;: &quot;https://www.\u003cb\u003ephp\u003c/b\u003e.net/manual/en/book.phar.\u003cb\u003ephp\u003c/b\u003e&quot;,
            &quot;unescapedUrl&quot;: &quot;https://www.php.net/manual/en/book.phar.php&quot;,
            &quot;url&quot;: &quot;https://www.php.net/manual/en/book.phar.php&quot;,
            &quot;visibleUrl&quot;: &quot;www.php.net&quot;,
            &quot;richSnippet&quot;: {
              &quot;metatags&quot;: {
                &quot;viewport&quot;: &quot;width=device-width, initial-scale=1.0&quot;
              }
            },
            &quot;breadcrumbUrl&quot;: {
              &quot;host&quot;: &quot;www.php.net&quot;,
              &quot;crumbs&quot;: [
                &quot;manual&quot;,
                &quot;book.phar.php&quot;
              ]
            }
          },
          {
            &quot;cacheUrl&quot;: &quot;http://www.google.com/search?q=cache:oF_HUyG3J8MJ:en.wikipedia.org&quot;,
            &quot;clicktrackUrl&quot;: &quot;https://www.google.com/url?client=internal-element-cse&amp;cx=partner-pub-9134522736300956:4140494421&amp;q=https://en.wikipedia.org/wiki/PHAR_(file_format)&amp;sa=U&amp;ved=2ahUKEwitgb3goN3vAhXS8LsIHedyCqwQFjABegQIExAB&amp;usg=AOvVaw1B9f4N1kCv5G2jqhX6GEId&quot;,
            &quot;content&quot;: &quot;In software, a PHAR (\u003cb\u003ePHP Archive\u003c/b\u003e) file is a package format to enable distribution \nof applications and libraries by bundling many PHP code files and other&amp;nbsp;...&quot;,
            &quot;contentNoFormatting&quot;: &quot;In software, a PHAR (PHP Archive) file is a package format to enable distribution \nof applications and libraries by bundling many PHP code files and other ...&quot;,
            &quot;title&quot;: &quot;PHAR (file format) - Wikipedia&quot;,
            &quot;titleNoFormatting&quot;: &quot;PHAR (file format) - Wikipedia&quot;,
            &quot;formattedUrl&quot;: &quot;https://en.wikipedia.org/wiki/PHAR_(file_format)&quot;,
            &quot;unescapedUrl&quot;: &quot;https://en.wikipedia.org/wiki/PHAR_(file_format)&quot;,
            &quot;url&quot;: &quot;https://en.wikipedia.org/wiki/PHAR_(file_format)&quot;,
            &quot;visibleUrl&quot;: &quot;en.wikipedia.org&quot;,
            &quot;richSnippet&quot;: {
              &quot;metatags&quot;: {
                &quot;referrer&quot;: &quot;origin&quot;,
                &quot;ogTitle&quot;: &quot;PHAR (file format) - Wikipedia&quot;,
                &quot;ogType&quot;: &quot;website&quot;
              }
            },
            &quot;breadcrumbUrl&quot;: {
              &quot;host&quot;: &quot;en.wikipedia.org&quot;,
              &quot;crumbs&quot;: [
                &quot;wiki&quot;,
                &quot;PHAR_(file_format)&quot;
              ]
            }
          },
          {
            &quot;cacheUrl&quot;: &quot;http://www.google.com/search?q=cache:R7KjRoykITgJ:www.php.net&quot;,
            &quot;clicktrackUrl&quot;: &quot;https://www.google.com/url?client=internal-element-cse&amp;cx=partner-pub-9134522736300956:4140494421&amp;q=https://www.php.net/manual/en/phar.using.intro.php&amp;sa=U&amp;ved=2ahUKEwitgb3goN3vAhXS8LsIHedyCqwQFjACegQIERAB&amp;usg=AOvVaw15HS5ORidOHOyYH5D4cQyj&quot;,
            &quot;content&quot;: &quot;The phar stream wrapper allows accessing the files within a phar \u003cb\u003earchive\u003c/b\u003e using \n\u003cb\u003ePHP&amp;#39;s\u003c/b\u003e standard file functions fopen(), opendir(), and others that work on regular&amp;nbsp;...&quot;,
            &quot;contentNoFormatting&quot;: &quot;The phar stream wrapper allows accessing the files within a phar archive using \nPHP's standard file functions fopen(), opendir(), and others that work on regular ...&quot;,
            &quot;title&quot;: &quot;Using Phar Archives: Introduction - Manual - PHP&quot;,
            &quot;titleNoFormatting&quot;: &quot;Using Phar Archives: Introduction - Manual - PHP&quot;,
            &quot;formattedUrl&quot;: &quot;https://www.\u003cb\u003ephp\u003c/b\u003e.net/manual/en/phar.using.intro.\u003cb\u003ephp\u003c/b\u003e&quot;,
            &quot;unescapedUrl&quot;: &quot;https://www.php.net/manual/en/phar.using.intro.php&quot;,
            &quot;url&quot;: &quot;https://www.php.net/manual/en/phar.using.intro.php&quot;,
            &quot;visibleUrl&quot;: &quot;www.php.net&quot;,
            &quot;richSnippet&quot;: {
              &quot;metatags&quot;: {
                &quot;viewport&quot;: &quot;width=device-width, initial-scale=1.0&quot;
              }
            },
            &quot;breadcrumbUrl&quot;: {
              &quot;host&quot;: &quot;www.php.net&quot;,
              &quot;crumbs&quot;: [
                &quot;manual&quot;,
                &quot;phar.using.intro.php&quot;
              ]
            }
          },
          {
            &quot;cacheUrl&quot;: &quot;http://www.google.com/search?q=cache:hdLqmA5_Q9IJ:medium.com&quot;,
            &quot;clicktrackUrl&quot;: &quot;https://www.google.com/url?client=internal-element-cse&amp;cx=partner-pub-9134522736300956:4140494421&amp;q=https://medium.com/%40tfidry/create-and-deploy-secure-phars-c5572f10b4dd&amp;sa=U&amp;ved=2ahUKEwitgb3goN3vAhXS8LsIHedyCqwQFjAKegQIDBAC&amp;usg=AOvVaw2pE_8uCbFfU5efIQFphwKt&quot;,
            &quot;content&quot;: &quot;29 Dec 2017 \u003cb\u003e...\u003c/b\u003e For those who are not familiar with it, PHAR (\u003cb\u003ePhp Archive\u003c/b\u003e) is analogous to the \nJAR file concept but for PHP. It allows you to package an&amp;nbsp;...&quot;,
            &quot;contentNoFormatting&quot;: &quot;29 Dec 2017 ... For those who are not familiar with it, PHAR (Php Archive) is analogous to the \nJAR file concept but for PHP. It allows you to package an ...&quot;,
            &quot;title&quot;: &quot;Create and deploy secure PHARs. For those who are not familiar ...&quot;,
            &quot;titleNoFormatting&quot;: &quot;Create and deploy secure PHARs. For those who are not familiar ...&quot;,
            &quot;formattedUrl&quot;: &quot;https://medium.com/@tfidry/create-and-deploy-secure-phars-c5572f10b4dd&quot;,
            &quot;unescapedUrl&quot;: &quot;https://medium.com/@tfidry/create-and-deploy-secure-phars-c5572f10b4dd&quot;,
            &quot;url&quot;: &quot;https://medium.com/%40tfidry/create-and-deploy-secure-phars-c5572f10b4dd&quot;,
            &quot;visibleUrl&quot;: &quot;medium.com&quot;,
            &quot;richSnippet&quot;: {
              &quot;cseImage&quot;: {
                &quot;src&quot;: &quot;https://miro.medium.com/max/414/1*hhQG6DX59IjMIhyPCmCT4w.png&quot;,
                &quot;width&quot;: &quot;229&quot;,
                &quot;type&quot;: &quot;1&quot;,
                &quot;height&quot;: &quot;220&quot;
              },
              &quot;metatags&quot;: {
                &quot;twitterAppUrlIphone&quot;: &quot;medium://p/c5572f10b4dd&quot;,
                &quot;twitterTitle&quot;: &quot;Create and deploy secure PHARs&quot;,
                &quot;ogTitle&quot;: &quot;Create and deploy secure PHARs&quot;,
                &quot;alAndroidPackage&quot;: &quot;com.medium.reader&quot;,
                &quot;title&quot;: &quot;Create and deploy secure PHARs. For those who are not familiar with it… | by Théo Fidry | Medium&quot;,
                &quot;twitterLabel1&quot;: &quot;Reading time&quot;,
                &quot;ogType&quot;: &quot;article&quot;,
                &quot;twitterCard&quot;: &quot;summary_large_image&quot;,
                &quot;twitterData1&quot;: &quot;8 min read&quot;,
                &quot;alAndroidAppName&quot;: &quot;Medium&quot;,
                &quot;ogSiteName&quot;: &quot;Medium&quot;,
                &quot;twitterAppNameIphone&quot;: &quot;Medium&quot;,
                &quot;twitterSite&quot;: &quot;@Medium&quot;,
                &quot;alWebUrl&quot;: &quot;https://medium.com/@tfidry/create-and-deploy-secure-phars-c5572f10b4dd&quot;,
                &quot;articlePublishedTime&quot;: &quot;2018-05-31T12:58:30.871Z&quot;,
                &quot;parselyPostId&quot;: &quot;c5572f10b4dd&quot;,
                &quot;author&quot;: &quot;Théo Fidry&quot;,
                &quot;alIosAppStoreId&quot;: &quot;828256236&quot;,
                &quot;ogDescription&quot;: &quot;For those who are not familiar with it, PHAR (Php Archive) is analogous to the JAR file concept but for PHP. It allows you to package an…&quot;,
                &quot;ogImage&quot;: &quot;https://miro.medium.com/max/414/1*hhQG6DX59IjMIhyPCmCT4w.png&quot;,
                &quot;twitterImageSrc&quot;: &quot;https://miro.medium.com/max/414/1*hhQG6DX59IjMIhyPCmCT4w.png&quot;,
                &quot;referrer&quot;: &quot;unsafe-url&quot;,
                &quot;viewport&quot;: &quot;width=device-width,minimum-scale=1,initial-scale=1&quot;,
                &quot;themeColor&quot;: &quot;#000000&quot;,
                &quot;twitterDescription&quot;: &quot;For those who are not familiar with it, PHAR (Php Archive) is analogous to the JAR file concept but for PHP. It allows you to package an…&quot;,
                &quot;alIosAppName&quot;: &quot;Medium&quot;,
                &quot;alIosUrl&quot;: &quot;medium://p/c5572f10b4dd&quot;,
                &quot;ogUrl&quot;: &quot;https://medium.com/@tfidry/create-and-deploy-secure-phars-c5572f10b4dd&quot;,
                &quot;twitterAppIdIphone&quot;: &quot;828256236&quot;,
                &quot;fbAppId&quot;: &quot;542599432471018&quot;,
                &quot;alAndroidUrl&quot;: &quot;medium://p/c5572f10b4dd&quot;,
                &quot;articleAuthor&quot;: &quot;https://medium.com/@tfidry&quot;
              }
            },
            &quot;breadcrumbUrl&quot;: {
              &quot;host&quot;: &quot;medium.com&quot;,
              &quot;crumbs&quot;: [
                &quot;...&quot;
              ]
            }
          },
          {
            &quot;cacheUrl&quot;: &quot;http://www.google.com/search?q=cache:ANsd0gn_CG8J:matomo.org&quot;,
            &quot;clicktrackUrl&quot;: &quot;https://www.google.com/url?client=internal-element-cse&amp;cx=partner-pub-9134522736300956:4140494421&amp;q=https://matomo.org/docs/setup-auto-archiving/&amp;sa=U&amp;ved=2ahUKEwitgb3goN3vAhXS8LsIHedyCqwQFjATegQIAhAB&amp;usg=AOvVaw0nBYqpGgl4e-rA7nyxCCRr&quot;,
            &quot;content&quot;: &quot;You can execute the command “which \u003cb\u003ephp\u003c/b\u003e” or “which \u003cb\u003ephp\u003c/b\u003e” in a linux shell, to find \nout the the path of your \u003cb\u003ePHP\u003c/b\u003e&amp;nbsp;...&quot;,
            &quot;contentNoFormatting&quot;: &quot;You can execute the command “which php” or “which php” in a linux shell, to find \nout the the path of your PHP ...&quot;,
            &quot;title&quot;: &quot;How to Set up Auto-\u003cb\u003eArchiving\u003c/b\u003e of Your Reports User Guide - Analytics ...&quot;,
            &quot;titleNoFormatting&quot;: &quot;How to Set up Auto-Archiving of Your Reports User Guide - Analytics ...&quot;,
            &quot;formattedUrl&quot;: &quot;https://matomo.org/docs/setup-auto-\u003cb\u003earchiving\u003c/b\u003e/&quot;,
            &quot;unescapedUrl&quot;: &quot;https://matomo.org/docs/setup-auto-archiving/&quot;,
            &quot;url&quot;: &quot;https://matomo.org/docs/setup-auto-archiving/&quot;,
            &quot;visibleUrl&quot;: &quot;matomo.org&quot;,
            &quot;richSnippet&quot;: {
              &quot;cseImage&quot;: {
                &quot;src&quot;: &quot;https://static.matomo.org/wp-content/uploads/2018/11/feature.png&quot;,
                &quot;width&quot;: &quot;321&quot;,
                &quot;type&quot;: &quot;1&quot;,
                &quot;height&quot;: &quot;157&quot;
              },
              &quot;metatags&quot;: {
                &quot;twitterSite&quot;: &quot;@matomo_org&quot;,
                &quot;ogImageWidth&quot;: &quot;1024&quot;,
                &quot;ogTitle&quot;: &quot;How to Set up Auto-Archiving of Your Reports - Analytics Platform - Matomo&quot;,
                &quot;twitterLabel1&quot;: &quot;Est. reading time&quot;,
                &quot;ogLocale&quot;: &quot;en_US&quot;,
                &quot;ogImage&quot;: &quot;https://static.matomo.org/wp-content/uploads/2018/11/feature.png&quot;,
                &quot;ogType&quot;: &quot;article&quot;,
                &quot;articlePublisher&quot;: &quot;https://www.facebook.com/Matomo.org&quot;,
                &quot;twitterCard&quot;: &quot;summary&quot;,
                &quot;msapplicationTileimage&quot;: &quot;https://static.matomo.org/wp-content/uploads/2018/11/cropped-DefaultIcon-270x270.png&quot;,
                &quot;ogImageHeight&quot;: &quot;500&quot;,
                &quot;twitterData1&quot;: &quot;14 minutes&quot;,
                &quot;viewport&quot;: &quot;width=device-width, initial-scale=1&quot;,
                &quot;ogUrl&quot;: &quot;https://matomo.org/docs/setup-auto-archiving/&quot;,
                &quot;ogSiteName&quot;: &quot;Analytics Platform - Matomo&quot;,
                &quot;articleModifiedTime&quot;: &quot;2021-03-24T02:22:11+00:00&quot;
              }
            },
            &quot;breadcrumbUrl&quot;: {
              &quot;host&quot;: &quot;matomo.org&quot;,
              &quot;crumbs&quot;: [
                &quot;User guides&quot;,
                &quot;Configuration&quot;
              ]
            }
          }
        ],
        &quot;findMoreOnGoogle&quot;: {
          &quot;url&quot;: &quot;https://www.sc.com/&quot;
        }
      });
  </code></pre>