I have this code Input is /something/something/index.html
[- $script = $ENV{SCRIPT_NAME} -] [- @fields = split("/",$script) -] [+ $fields[3] +]<br /> [- $script = $fields[3] -] [+ $script +]<br />
Result is index.html And now I need split index.html on index and html but code below dont give me this result.
[- @field = split(".",$script) -] [+ @field +] [+ $field[0] +]<br /> [+ $field[1] +]<br /> [+ $field[2] +]<br />
where is problem ???
In reply to Problem with Split function by Wampa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |