News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Quick Tip:
Array Type Hint Added to CVS
May 29, 2005 @ 19:27:21

According to this latest post on the NuCluez Blog, there's a new "type hint" that's been added to the PHP CVS in the past few days:

function foo( array $a ) { print_r( $a ); } 
foo( array( 1,2,3 ) ); 
foo( "Hello" );'

Array(    [0] => 1    [1] => 2    [2] => 3 )

Fatal error: Argument 1 must be an array in Command line code on line 1

He also mentions that PCRE has been updated to version 5.0.

0 comments voice your opinion now!



blog comments powered by Disqus

Similar Posts

Community News: Latest PECL Releases for 07.09.2013

Site News: Popular Posts for the Week of 07.10.2009

Community News: Packagist Latest Releases for 01.10.2013

Community News: Packagist Latest Releases for 01.01.2014

Community News: Latest PEAR Releases for 02.24.2014


Community Events

Don't see your event here?
Let us know!


library podcast community opinion series api voicesoftheelephpant unittest laravel5 language development release php7 security framework extension interview version introduction laravel

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework