[TYPO3-core] RFC: Use split to fetch a value

Bernhard Kraft kraftb at kraftb.at
Fri Dec 2 13:40:27 CET 2005


Michael Stucki wrote:


> If there is an existing way to get this value (I don't think so) please let
> me know...

I also never found one.

Luckily I just came into the position that I have to return the first or
second element ... this was easy with

i.e: 2nd element:
split {
   cObjNum = 1 || 2
   2.current = 1
}

but AFAIK you are right that it is not possible to get a specific key.


>  			}
> +			}

I guess this is a typo !

I patched the code and looked at the result and there are 2 } on the 
same level. Either it's just an formatting issue or syntax.


greets,
Bernhard



More information about the TYPO3-team-core mailing list