note 126443 added to function.filter-var

From: Date: Tue, 21 Sep 2021 14:03:24 +0000
Subject: note 126443 added to function.filter-var
Groups: php.notes 
Request: Send a blank email to php-notes+get-216982@lists.php.net to get a copy of this message
Be aware that FILTER_FLAG_PATH_REQUIRED is happy with a single slash (/), so: <?php $options = array('flags' => FILTER_FLAG_PATH_REQUIRED); filter_var('http://example.com', FILTER_VALIDATE_URL, $options); // returns false filter_var('http://example.com/', FILTER_VALIDATE_URL, $options); // returns 'http://example.com/' ?> ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 45.163.154.39) ---- Manual Page -- https://php.net/manual/en/function.filter-var.php Edit -- https://main.php.net/note/edit/126443 Del: integrated -- https://main.php.net/note/delete/126443/integrated Del: useless -- https://main.php.net/note/delete/126443/useless Del: bad code -- https://main.php.net/note/delete/126443/bad+code Del: spam -- https://main.php.net/note/delete/126443/spam Del: non-english -- https://main.php.net/note/delete/126443/non-english Del: in docs -- https://main.php.net/note/delete/126443/in+docs Del: other reasons-- https://main.php.net/note/delete/126443 Reject -- https://main.php.net/note/reject/126443 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216982) next »