What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » MySQL

MySQL
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: MySQL
quote:
Originally posted by Leroux
..., would it be possible to have multiple things determined by case?
Sure! Both PHP and JScript are case-sensitive when it comes to assigning a key to an array or object.

This allows you to do things like:
php code:
<?php
$test = array(
    "foo" => "bar",
    "FoO" => "cookie"
);
?>
and
js code:
var test = {
    "foo" : "bar",
    "FoO" : "cookie"
};
and both will give you an array/object with 2 values indexed by 2 keys.

This means that you can safely add a key to a PHP array, output it as JSON and retrieve it in JScript without any trouble with possibly similar key names. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
04-29-2009 11:06 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
MySQL - by ArkaneArkade on 04-26-2009 at 10:34 PM
RE: MySQL - by MeEtc on 04-27-2009 at 12:03 AM
RE: MySQL - by ArkaneArkade on 04-28-2009 at 11:57 AM
RE: MySQL - by Matti on 04-28-2009 at 04:25 PM
RE: RE: MySQL - by ArkaneArkade on 04-28-2009 at 10:45 PM
RE: MySQL - by Matti on 04-29-2009 at 11:06 AM
RE: MySQL - by ArkaneArkade on 05-02-2009 at 09:10 PM
RE: MySQL - by felipEx on 05-03-2009 at 01:12 AM
RE: RE: MySQL - by ArkaneArkade on 05-03-2009 at 01:33 AM
RE: MySQL - by felipEx on 05-03-2009 at 02:57 AM
RE: RE: MySQL - by ArkaneArkade on 05-03-2009 at 10:59 AM
RE: MySQL - by Matti on 05-03-2009 at 07:23 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On