Unclassified NewsBoard Code Reference

explode_quoted function

Same as PHP function explode(), but also groups by quotes

function explode_quoted ($sep, $str, $mask_bs = true);

Parameters:

mask_bs  –  optional, default: true
(bool) take case of \ characters, and ignore \" f.ex. [currently ignored to true]
sep
str

Remarks:

TODO: synchronise with /proj/ute copy of this function (especially the 'keep' parameter)
TODO: needs to be extended to recognise "-strings inside the text (like shell parameters)
for search queries like -"block words" or user:"user name"

Implementation file: unb_lib/common.lib.php, line 1745

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.