note 126209 deleted from function.trim by cmb

From: Date: Fri, 02 Jul 2021 09:40:04 +0000
Subject: note 126209 deleted from function.trim by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-216568@lists.php.net to get a copy of this message
Note Submitter: atulkumar dot softwaredev at gmail dot com ---- // trim() function is widely used in forms /* It clears off the extra whitespace (more than one) and other characters (specified by user) from the input fields */ // Example: $username = " Sir Rasmus Lerdorf "; $username = rtrim($username); echo $username; // Try to use echo instead of print // Output: Sir Rasmus Lerdorf

« previous php.notes (#216568) next »