PHP Google\Cloud\PubSub Topic::exists - 1 examples found. These are the top rated real world PHP examples of Google\Cloud\PubSub\Topic::exists extracted from open source projects. You can rate examples to help us improve the quality of examples.
Service errors will NOT bubble up from this method. It will always return
a boolean value. If you want to check for errors, use
{@see \Google\Cloud\PubSub\Topic::info()}.
Example:
if ($topic->exists()) {
echo 'Topic exists';
}