<?php
$queryReplace = "<span class=\"found\">".$query."</span>";
$descriptionContent = "Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.";
$boldQuery = str_replace($query, $queryReplace, $descriptionContent);
$queryInDescription = stristr($boldQuery, $query);
echo $queryInDescription;
Warning: Undefined variable $query in /in/i6cPC on line 2
Warning: Undefined variable $query in /in/i6cPC on line 4
Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /in/i6cPC on line 4
Warning: Undefined variable $query in /in/i6cPC on line 5
Deprecated: stristr(): Passing null to parameter #2 ($needle) of type string is deprecated in /in/i6cPC on line 5
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $query in /in/i6cPC on line 2
Warning: Undefined variable $query in /in/i6cPC on line 4
Warning: Undefined variable $query in /in/i6cPC on line 5
Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.
Notice: Undefined variable: query in /in/i6cPC on line 2
Notice: Undefined variable: query in /in/i6cPC on line 4
Notice: Undefined variable: query in /in/i6cPC on line 5
Deprecated: stristr(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /in/i6cPC on line 5
Notice: Undefined variable: query in /in/i6cPC on line 2
Notice: Undefined variable: query in /in/i6cPC on line 4
Notice: Undefined variable: query in /in/i6cPC on line 5