[TYPO3] pass variables to funtion in php content element?

Bing Du du_bing at hotmail.com
Fri Apr 7 20:46:35 CEST 2006


Ries van Twisk wrote:

> Why not:
> 
> <?php
> $GLOBALS['a'] = 'one';
> foo();
> 
> function foo () {
> 
> echo "a is {$GLOBALS['a']}";
> }
> 
> ?>
> 

Thanks much for the help!  Yup, that works.  I'm still curious why mine 
not working in Typo3 though.

Bing



More information about the TYPO3-english mailing list