Welcome! Log In Create A New Profile

Advanced

Split string with array_split (or maybe substring)

Posted by jbendotnet 
Split string with array_split (or maybe substring)
July 14, 2010 01:19PM
Hi,

I'm looking into ways to split a string and then treat the parts differently. I've tried [code]array_split '|' "one|two" 2 to=$array;[/code] (using array-var-nginx-module) but can't access the individual parts of $array, has anyone managed this? I've tried $array[0] etc.

Alternatively, is there a native substring method available in an nginx conf file?

Thanks,

j



Edited 1 time(s). Last edit at 07/14/2010 01:20PM by jbendotnet.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 285
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready