protected function parseArgument($arg)
    {
        //if it's a literal string value
        if (strpos($arg, '"') === 0
            || strpos($arg, "'") === 0
        ) {
            return "'" . str_replace("'", '\\\'', substr($arg, 1, -1)) . "'";
        }
        
        //if it's null
        if (strtolower($arg) === 'null'
            || strtolower($arg) === 'true'
            || strtolower($arg) === 'false'
            || is_numeric($arg)
        ) {
            return $arg;
        }
        
        $arg = str_replace(array('[', ']', '(', ')'), '', $arg);
        $arg = str_replace("'", '\\\'', $arg);
        return sprintf(self::BLOCK_ARGUMENT_VALUE, $arg);
    }
protected function parseArgument($arg)
    {
        //if it's a literal string value
        if (strpos($arg, '"') === 0
            || strpos($arg, "'") === 0
        ) {
            return "'" . str_replace("'", '\\\'', substr($arg, 1, -1)) . "'";
        }
        
        //if it's null
        if (strtolower($arg) === 'null'
            || strtolower($arg) === 'true'
            || strtolower($arg) === 'false'
            || is_numeric($arg)
        ) {
            return $arg;
        }
        
        $arg = str_replace(array('[', ']', '(', ')'), '', $arg);
        $arg = str_replace("'", '\\\'', $arg);
        return sprintf(self::BLOCK_ARGUMENT_VALUE, $arg);
    }
protected function parseArgument ( $ arg ) { //if it's a literal string value if ( strpos ( $ arg , '"' ) === 0 || strpos ( $ arg , "'" ) === 0 ) { return "'" . str_replace ( "'" , '\\\'' , substr ( $ arg , 1 , - 1 ) ) . "'" ; } //if it's null if ( strtolower ( $ arg ) === 'null' || strtolower ( $ arg ) === 'true' || strtolower ( $ arg ) === 'false' || is_numeric ( $ arg ) ) { return $ arg ; } $ arg = str_replace ( array ( '[' , ']' , '(' , ')' ) , '' , $ arg ) ; $ arg = str_replace ( "'" , '\\\'' , $ arg ) ; return sprintf ( self :: BLOCK_ARGUMENT_VALUE , $ arg ) ; }
If there's a quote, null, bool,
int, float... it's the literal value

@param *string $value One string argument value

@return mixed
If there s a quote null bool int float ... it s the literal value