|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-08-03 04:12 UTC] aharvey@php.net
-Status: Open
+Status: Duplicate
[2012-08-03 04:12 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
Description: ------------ With Multiple typehint support, function arguments can accept multiple specific type of data. The syntax would be like this: function demo(TypeA|ClassA|Array $var){ } Which will accept the one of those types: TypeA, ClassA, Array as valid argument.