dbms_assert.enquote_literalused for single string quotes in Oracle. Is there a similar function in MySQL and PHP?
dbms_assert.enquote_literal
You can use a custom function to do this.
Example:
function str_enq($string = '') { $char = '\''; return str_pad($string, strlen($string) + 2, $char, STR_PAD_BOTH); }
Source: https://habr.com/ru/post/1618772/More articles:Facebook iOS SDK 4.8.0 does not return to application after logging in - iosПочему некоторые символы не могут быть введены в Python IDLE? - unicodeDisplay different data on one HTML page in AngularJS - javascriptCreate a matrix of repeating columns based on the min and max vectors - matrixAlt Gr key gives menu focus when I do not expect it to be - javafxEditorUtility.OpenFilePanel for Unity WebGL (Runtime) - unity3dUnable to change system variable path in Windows 10 as administrator - javaangular testing with sinon, mocha, chai - angularjsСложный SQL-запрос к одной таблице - sqlHow to implement AUTO_INCREMENT in a Yii2 migration using MySQL? - phpAll Articles