« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 2 of about 2 for allusers (0.000 sec.)
XSLTProcessor::registerPHPFunctionNS — PHP の関数を、名前空間付きの XSLT 関数と... 11228
XSLTProcessor::registerPHPFunctionNS (PHP >= 8.4.0) XSLTProcessor::registerPHPFunctionNS — PHP の関数を、名前空間付きの XSLT 関数として登録する 説明 public function XSLTProcessor::registerPHPFunctionNS ( string $namespaceURI , string $name ... ror がスローされます。 戻り値 値を返しません。 例 例1 スタイルシートから簡単な PHP 関数をコールする例 <?php $xml = <<<EOB <allusers> <user> <uid>bob</uid> </user> <user> <uid>joe</uid> </user> </allusers> EOB; $xsl = <<<EOB <?xml version="1.0" encoding=" ... g/1999/XSL/Transform" xmlns:my="urn:my.ns"> <xsl:output method="html" encoding="utf-8" indent="yes"/> <xsl:template match="allusers"> <html><body> <h2><xsl:value-of select="my:count(user/uid)" /> users</h2> <table> <xsl:for-each select="user"> <tr> <td> ...
https://man.mtool.work/php/8.3/xsltprocessor.registerphpfunctionns.html
XSLTProcessor::registerPHPFunctions — PHP 関数を XSLT 関数として利用できるよう... 7485
XSLTProcessor::registerPHPFunctions (PHP 5 >= 5.0.4, PHP 7, PHP 8) XSLTProcessor::registerPHPFunctions — PHP 関数を XSLT 関数として利用できるようにする 説明 public function XSLTProcessor::registerPHPFunctions ( array | string | null $functi ... ルバックとして callable を使用できるようになりました。 例 例1 スタイルシートからの単純な PHP 関数コール <?php $xml = <<<EOB <allusers> <user> <uid>bob</uid> </user> <user> <uid>joe</uid> </user> </allusers> EOB; $xsl = <<<EOB <?xml version="1.0" encoding=" ... /Transform" xmlns:php="http://php.net/xsl"> <xsl:output method="html" encoding="utf-8" indent="yes"/> <xsl:template match="allusers"> <html><body> <h2>Users</h2> <table> <xsl:for-each select="user"> <tr><td> <xsl:value-of select="php:function('ucfirst',s ...
https://man.mtool.work/php/8.3/xsltprocessor.registerphpfunctions.html
PREV 1 NEXT