Switch to: V11V10V9V8V7V6V5

valentina_escape_string()

Declaration

string valentina_escape_string ( string unescaped_string )

Parameters

Name Description
unescaped_stringThe string that is to be escaped.

Description

This function will escape the unescaped_string, so that it is safe to place it in a valentina_query(). This function is deprecated.

valentina_real_escape_string() is the alias of this function due to Valentina backend using UTF-8,

Return Values

Returns the escaped string.

Examples

Example 1.

<?php
$item = "Zak's Laptop";
$escaped_item = valentina_escape_string($item);
printf("Escaped string: %s\n", $escaped_item);
?> 

The above example will output:

Escaped string: Zak\'s Laptop

See Also