XPHP split a variable?

I’m wondering whether there is an intrinsic (i.e. not requiring a module) XPHP way of doing something like a PHP chunk_split() on a data source variable in a widget?

So, for example if {my_var} has a value of ‘ALY’ you could display ‘A,L,Y’ in the widget output (yes I know that chunk_split() would give you ‘A,L,Y,’, but ‘A,L,Y’ is what I’m going for, so might as well ask for that, right?).

The module approach remains an option of course, but seems worth checking this possibility first…

Thanks,

-= G =-

Hmm, you could try using substring="0,1" to get the first character (and 1,2 for the second, etc.) if that might help – XPHP - LiveWhale Support – but probably a module is a cleaner option for something that needs more precision, or to account for more different lengths and types of data coming in.

right - I thought of that too, but I don’t know in advance how long the string is.

Thanks,

-= G =-