@ 2017-01-10T15:46:16Z <?php
$var = '<function controlid="foobar"><create_potransaction><transactiontype>Item Receipt</transactiontype><datecreated><year>2016</year><month>12</month><day>07</day></datecreated><vendorid>49041</vendorid><documentno>IR-400206</documentno><datedue><year>2016</year><month>12</month><day>09</day></datedue><returnto><contactname>Johnny on the Spot Porta Potties LLC - Lexington, IL</contactname></returnto><payto><contactname>Johnny on the Spot Porta Potties LLC - Lexington, IL</contactname></payto><customfields><customfield><customfieldname>audit_notes</customfieldname><customfieldvalue>Site Add: 1301 South Main Street, Type: Construction Standard , Quantity: 2 On Call, hStdChg: $70, hDeliv: $ 0, hRemove: 0, hBilling: 28 Days, hXtraServ: 0, hOther: 0, hFuel%: 0, hFuel$: 0, hTax%: 0, cStdChg: $155, cDeliv: $ 0, cRemove: 0, cBilling: 28 Days, cXtraServ: 0, cOther: 0, cTax%: 0, PO/Job Number: ----------- Profit Margin of $170 or 54.8%</customfieldvalue></customfield></customfields><potransitems><potransitem><itemid>50110</itemid><itemdesc>Normal, IL 61761';
$endash = html_entity_decode('\u0096', ENT_COMPAT, 'UTF-8');
$str = str_replace(chr(150), "-", $var);//–
$str = str_replace(chr(194), "-", $str);//–
$string = filter_var($var, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_FLAG_ENCODE_HIGH);
var_dump(is_numeric(-5));
//echo $str;
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 5.6.0 - 5.6.40 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.4 , 8.3.6 bool(true)
Output for 8.3.5 Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
bool(true)
preferences:dark mode live preview
226.95 ms | 402 KiB | 291 Q