note 112258 deleted from language.oop5.basic by peehaa

From: Date: Thu, 04 May 2017 13:47:23 +0000
Subject: note 112258 deleted from language.oop5.basic by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209052@lists.php.net to get a copy of this message
Note Submitter: php at kingsquare dot nl ---- Just to be clear: the correct way of validating a classname, as stated in the docs is: $valid = preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $className); (thanks to salathe@php.net & aharvey@php.net for clearing me up!)

« previous php.notes (#209052) next »