TwistPHP Documentation

exists

File path: dist/twist/Core/Utilities/Cookie.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

existsReturns true if there is a cookie with this name.

Parameters

Name Type Description
$strNamestringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$strName 'foo';

//Call the function exists with the example vars
Twist::Cookie() -> exists($strName);