note 114277 added to function.imagefilter

From: Date: Sat, 01 Feb 2014 14:25:27 +0000
Subject: note 114277 added to function.imagefilter
Groups: php.notes 
Request: Send a blank email to php-notes+get-198381@lists.php.net to get a copy of this message
filtertype is an integer. So if you want to use it as a variable and need to use, e.g. preg_match function you can do it in this way: <?php $filter = IMG_FILTER_BRIGHTNESS; if( preg_match( '/^[0-9]{1,2}$/', $filter ) ) { //Do something } ?> The order of the filtertypes in this manual determines the number of each filter, from 0 to 11. E.g. IMG_FILTER_NEGATE=0. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/function.imagefilter.php Edit -- https://master.php.net/note/edit/114277 Del: integrated -- https://master.php.net/note/delete/114277/integrated Del: useless -- https://master.php.net/note/delete/114277/useless Del: bad code -- https://master.php.net/note/delete/114277/bad+code Del: spam -- https://master.php.net/note/delete/114277/spam Del: non-english -- https://master.php.net/note/delete/114277/non-english Del: in docs -- https://master.php.net/note/delete/114277/in+docs Del: other reasons-- https://master.php.net/note/delete/114277 Reject -- https://master.php.net/note/reject/114277 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198381) next »