Function __global->_selectcode_neq
Definitions
sources/selectcode.php
- Helper function to generate an SQL "not equal to" fragment.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $field_name | string | No | No | required parameter | N/A | N/A | The field name |
| $var | string | No | No | required parameter | N/A | N/A | The string value (may actually hold an integer, if $numeric) |
| $numeric | boolean | No | No | required parameter | N/A | N/A | Whether the value is numeric |
Returns
- SQL fragment
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Helper function to generate an SQL "not equal to" fragment.
*
* @param string $field_name The field name
* @param string $var The string value (may actually hold an integer, if $numeric)
* @param boolean $numeric Whether the value is numeric
* @return string SQL fragment
*/
function _selectcode_neq(string $field_name, string $var, bool $numeric) : string
* Helper function to generate an SQL "not equal to" fragment.
*
* @param string $field_name The field name
* @param string $var The string value (may actually hold an integer, if $numeric)
* @param boolean $numeric Whether the value is numeric
* @return string SQL fragment
*/
function _selectcode_neq(string $field_name, string $var, bool $numeric) : string

