All pastes #611180 Raw Edit

ZendLover

public text v1 · immutable
·published 2007-07-09 20:18 UTC
rendered paste body
New PHP Syntax:

A class:
--File: Classname.php--

class Classname [
...
]

// We are now using [ ] instead of { }

An interface:
--File: Interfacename.php--

interface Interfacename ~
...
~

// For interfaces we are now using ~ ~ instead of { }

An abstract class:
--File: Abstractclass.php--
abstract class Abstractclass _
_


And finally a namespace:
--File: Namespacename.php--
namespace Namespacename;
...




Notes: That way, we ensure that nothing stays consistent within the language and that no one in the community approves. Isn't that a great idea? We are the ones making the choice, why should we care about the community ?

-Z