Jump to content

[WHMCS Licensing Addon] How can I do this?


Jamesking56

Recommended Posts

Hey!

 

Basically, I got the Array in PHP and printed it like so.

 

Array ( [status] => Active [registeredname] => James King [email] => james@jamesking56.co.uk [productid] => 6 [productname] => MyShout Free License [regdate] => 2010-09-04 [nextduedate] => 0000-00-00 [billingcycle] => Free Account [validdomain] => jamesking56.zapto.org,www.jamesking56.zapto.org [validip] => 192.168.1.68 [validdirectory] => F:\xampp\htdocs\MyShout\TEST [addons] => name=Test License Addon;nextduedate=2010-10-05;status=Active|name=Test License Addon 2;nextduedate=2010-10-06;status=Pending [checkdate] => 20100905 [localkey] => 9tjI1ATOwATMwIjI6gjOztjIlRXYkt2Ylh2YioTO6M3OicmbpRmblBVPzVHdhR3c7YDMtATMtATMwITP lRXYkVWdkRHel52OyAibvRGZBBSZz5WZjlGTgQ3clRVPl1WYuxXZ2lGdjFUPzVHdhR3c7UDMtATMtATM wITPlRXYkVWdkRHel52Ou9GZkFEIlNnblNWaMBCdzVGV9UWbh5mI6QjMxozc7Iycu9GZkFmI6YjOztjI UNVRUxFd19GaTlXTcN3YvRGdoxFcw1WY4xlOGJiO4IjOztjI5J3b0NWZylGZklGbhZnI6QTM6M3OigjN uEjL4YTMuITOxIiOyEjOztjIwlGZpxWY2JiO3ozc7IyZy9mLvRHchpnL2UzZul2azVWbhpmL3d3dscmc v5yb0BXY65iN1cmbpt2cl1WYqJiO3QjOztjIulWYt9GZklGbhZnI6ETM6M3OiQnb192YjFEIlVmcGJiO yEjOztjIlx2Y5N2ZulGbslmYiojMxozc7ICMw0CMw0CMwADMioDMxozc7ISZ0FGZlVHZ0hXZuJiOxEjO ztjI0ATL5ATLwEDMyIiOwEjOztjIlRXYkdWZyJiO3ozc7ISZz5WZjlGTgUWZyZEI0V3boNVeNJiOwIjO ztjIl1WYuR3Y1R2byBnI6ETM6M3OiYjI6EjOztjIklGdjVHZvJHcioTO6M3OisWdu82YuYTNn5WarNXZ tFmaANXZtFmaiozMyozc7ICbpFWblJiO1ozc7IyZul2SgMXZtFmSioDMxozc7ISZtFmbkVmclR3cpdWZ yJiO0EjOztjIlZXa0NWQiojN6M3OiMXd0FGdzJiO2ozc7pzMxoTYae9524b945f9c4eaef2e0e892291 3e019b28298da0bd1347f20a2c48a0f2eb84 [remotecheck] => 1 ) 

 

So, What I want to do is parse the addons part. I want to strip away the "name=" parts so I can get the addons in a separate array for each one...

 

What is the best way to parse them?

 

If anyone has parsed it before please post how you parsed the addons (It might be a better way than mine :lol:)

 

Thanks in advance for your help! :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated