Typed or not-typed data?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

pilau wrote:What is type hinting?
an example:

Code: Select all

function foo( bar &$bar ) {
}
the function foo will require a decendant of class bar given to it.
Post Reply