[Typo3-dev] PHP syntax

Johannes Reichardt mailbox at gramba.net
Sun Sep 4 15:37:58 CEST 2005


Use "==" if you want to compare values and refer to the php mailinglist ;)
> 
> // Gives the correct values to the 'type':
> 	if ($this->getFieldContent("type")=0) { $this->getFieldContent("type") 
> => "The first value"
> };
> 	if ($this->getFieldContent("type")=1) {
> ($this->getFieldContent("type") => "The second value")
> };
> 
> but I get a parse error, unexpected '=' and I am very new to PHP syntax.
> 
> Any suggestions?
> 
> - Søren
> _______________________________________________
> Typo3-dev mailing list
> Typo3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
> 





More information about the TYPO3-dev mailing list