Voting

: eight minus six?
(Example: nine)

The Note You're Voting On

Matthew, info at mathias-schaefer dot de
14 years ago
=> there is no instance of your class needed, you have to take care about the namespace (using 5.3).

<!-- xsl:
<xsl:value-of select="php:function ('My\Name\Space\MyClassName::methodName',1+2)"/>
--->

<?php
namespace My\Name\Space;

class
MyClassName
{
static public function
methodName($someArgument)
{
return
"resultis:".$someArgument;
}
}
?>

<!-- result:
resultis:3
-->

=> no to-string conversion of the argument needed
=> returning numbers is also possible (maybe DOM nodes too)

Keep on hackin'

<< Back to user notes page

To Top