Closed Thread
Results 1 to 4 of 4

Thread: Help with php array

  1. #1
    RossSchVle is offline Banned RossSchVle is an unknown quantity at this point
    Join Date
    Jul 2008
    Location
    Here/Now/Never
    Posts
    98

    Question Help with php array

    Hi all,
    I have a whmcs site that uses smarty as a templating system, basically I need help with a php array.

    In smarty you can get the array by using
    $whmcscid = $this->get_template_vars('');

    so in $whmcscid = $this->get_template_vars(''); I need to put $ClientDetails.UserId (another array).

    I cannot work out how to do this as I am rubbish at php arrays - I have tried very hard to fix this, please help if you can.

    Thanks,
    Damian
    Last edited by RossSchVle; 11-07-2008 at 12:05 PM.

  2. #2
    mephis's Avatar
    mephis is offline x10Hosting Member mephis is an unknown quantity at this point
    Join Date
    Aug 2008
    Location
    London, UK
    Posts
    39

    Re: Help with php array

    you can merge two (or more) arrays with array_merge()
    http://uk3.php.net/manual/en/function.array-merge.php

  3. #3
    RossSchVle is offline Banned RossSchVle is an unknown quantity at this point
    Join Date
    Jul 2008
    Location
    Here/Now/Never
    Posts
    98

    Re: Help with php array

    I fixed it using a session variable - so i didn't need to do the php variable thing in the end.

    Thanks anyway

  4. #4
    themasterrocker Guest

    Re: Help with php array

    Problem solved. Thread closed

Closed Thread

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. My 2cents on Ruby vs PHP.
    By jwillia in forum Programming Help
    Replies: 0
    Last Post: 03-15-2008, 11:18 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 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
x10hosting free hosting for the masses
dedicated servers