PHP Classes

File: parsefile.txt

Recommend this page to a friend!
  Classes of Fuck PHP Classes  >  MySQL Parser  >  parsefile.txt  >  Download  
File: parsefile.txt
Role: Auxiliary data
Content type: text/plain
Description: Example file of strings to parse
Class: MySQL Parser
Converts boolean expressions into MySQL conditions
Author: By
Last change: Changed some comments
Date: 12 years ago
Size: 528 bytes


Class file image Download
-- Some example boolean strings to be parsed into MySQL compatible strings
item1 OR item2 AND (item3 AND item4 NOT (item5 OR item6))

NOT item1 OR item2 AND (item3 OR item4)

-- Some faulty strings that will give 'a' result:

I wanna doll AND AND AND I wanna puppy as well OR OR OR maybe I want a kitten

Our mission statement is to maximize on our profits and or provide added value to our shareholders

-- A real faulty string that will still give 'a' result:

Boolean logic uses the keywords AND OR NOT