#19002 [Opn->Bgs]: like operator

From: Date: Tue, 20 Aug 2002 22:31:50 +0000
Subject: #19002 [Opn->Bgs]: like operator
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17361@lists.php.net to get a copy of this message
ID: 19002 Updated by: rasmus@php.net Reported By: cxw@seekthru.com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: any PHP Version: 4.1.2 New Comment: Argh! No inline regular expressions or magical operators please. There are functions to do this, call them. Previous Comments: ------------------------------------------------------------------------ [2002-08-20 18:29:14] cxw@seekthru.com I think it would be a good feature to have the syntax like the following: if ($var like "%abc"){ } or as an operator: if ($var ~ "abc%") { } This is similar to the like syntax in SQL. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19002&edit=1

« previous php.bugs (#17361) next »