Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020

    PHP explode array function

    Hi,

    Can anyone person show me an example AMS function that acts like PHP Explode Array function and assign values to variables? I have difficulty in figuring this out in AMS, i.e., reading and extracting delimited values from each line of my text files.

    The example PHP function is :
    //Values Passed from earlier parsing and delimited by ' - ', or '::' or ';;' or space
    $my_data = "Alan-20";

    //Extract Data from separator
    $data_array = explode ('-', $my_data);

    //Assign Extracted Values to variables
    $name = $data_array[0];
    $age = $data_array[1];

    //output
    echo "Name : $name , Age : $age";


    Please................help.

    Thank you.
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    In your Gallery in AMS. There is a scriplet named DelimitedStringsFunctions.lua. Take a look in this file for a function named DelimitedStringToTable. I'm sure you'll get it from there, but if you need help, post back.

  3. #3
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Quote Originally Posted by Worm
    In your Gallery in AMS. There is a scriplet named DelimitedStringsFunctions.lua. Take a look in this file for a function named DelimitedStringToTable. I'm sure you'll get it from there, but if you need help, post back.
    Thanks Worm...
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

Similar Threads

  1. Another tough one... Interaction between Web and AMS
    By Agent Jones in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 08-18-2005, 02:10 PM
  2. Function: String.RandomFromPattern
    By Brett in forum Setup Factory 8.0 Examples
    Replies: 0
    Last Post: 10-28-2004, 08:09 AM
  3. Function: Email Any Data Through PHP
    By Brett in forum AutoPlay Media Studio 5.0 Examples
    Replies: 8
    Last Post: 10-02-2004, 08:08 PM
  4. Bizarre Callback Function Behaviour - Can anyone help?
    By SRJ in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 06-30-2004, 09:16 PM
  5. Function: Resize & Center an Image
    By kpsmith in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-17-2004, 01:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts