TwistPHP Documentation

escapeString

File path: dist/twist/Core/Helpers/Database.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

escapeStringEscape and sanitise a string ready to be used in a SQL database query

Parameters

Name Type Description
$strRawStringstringn/a

Return Values

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

Example

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

//Call the function escapeString with the example vars
Twist::Database() -> escapeString($strRawString);