PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Aditya Sarkar   String to boolean search string   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: index.php
Class: String to boolean search string
Convert boolean expression to Google search syntax
Author: By
Last change:
Date: 9 years ago
Size: 462 bytes
 

Contents

Class file image Download
<?php
require("class.boolean_string.php");

//echo $sourcestring = '"chief officer" AND "PSV" OR "platform supply"';
echo $sourcestring = '"chief officer" AND "platform AND supply" OR "psv" not iam NOT "you" and ("find" or "set") not iii and "you" or "he" AND all NOT candy AND andy and xor AND "xxor"';
//echo $sourcestring = 'xor and nor';
echo '<br>';

$boolStrObj = new StrToBooleanStr($sourcestring);
echo
$boolStrObj->convertStrToBoolean();