SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist webchalkboard's Avatar
    Join Date
    Jan 2005
    Location
    Bristol, UK
    Posts
    494
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating an array

    Hi,

    If I wanted to create an array that looks like this how would I go about it?

    PHP Code:

    array(155) {
      [
    0]=>
      
    string(4"3531"
      
    ["user_id"]=>
      
    int(-1)
      [
    1]=>
      
    string(1"1"
      
    ["user_active"]=>
      
    string(1"1"
      
    [4]=>
      
    string(6"dionne"
      
    ["firstname"]=>
      
    string(6"myname"
      
    [5]=>
      
    string(10"myname"
      
    ...

    We basically have an application that's based on the phpbb forum code, and we use the forum login as the login to our site also. However I want to get away from any reliance on phpbb code as I believe its a bit buggy, and as we don't use the software anymore it makes sense to remake the login process. However I need to replicate the userdata cookie/session value as its used elsewhere in the code.

    Any suggestions?

    Thanks,
    Tom
    Websites for Sale - Sell websites in a purpose built marketplace
    Then do some Shopping

  2. #2
    Non-Member
    Join Date
    Apr 2006
    Location
    Scotland
    Posts
    325
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For creating arrays have a look at this tutorial:
    http://www.tizag.com/phpT/arrays.php


Bookmarks

Posting Permissions

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