View Single Post
  #2  
Old 07-19-2011, 03:59 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Quote:
Originally Posted by http://gscript.graal.net/substring
Usage
Syntax: string.substring(index[, length]);
Returns string.

Example
PHP Code:
function onCreated()
{
  
temp.foo "Hello World!";
  echo(
temp.foo.substring(1));
  echo(
temp.foo.substring(65));

This is a good starting point. If you know for a fact that the file being passed has .gani attached, you can just use substring. Otherwise, you might want to use a mix of http://gscript.graal.net/pos and substring.
__________________

Reply With Quote