Super Web Mart - Discount Coupons & Deals - Discount Promos, Coupon Codes, Discount deals and web site reviews
 

Author Topic: php change key function  (Read 496 times)

0 Members and 1 Guest are viewing this topic.

Offline Solushunz

  • Full Member
  • ***
  • Posts: 130
    • View Profile
php change key function
« on: July 17, 2011, 02:59:44 AM »
I use this code to change key funtion on my website. its not working.

Code: [Select]
<?php
$input_array
("FirSt" => 1"SecOnd" => 4);
print_r(array_change_key_case($input_arrayCASE_UPPER));
?>

What should i do on my website to activate this function.

Webmaster Forum

php change key function
« on: July 17, 2011, 02:59:44 AM »

Offline jbard

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • Web Partner Group
Re: php change key function
« Reply #1 on: December 27, 2011, 09:52:45 PM »
Hi, Your code has a syntax error.The best way to avoid these issues is to always use a consistent number of spaces when you indent a subblock, and ideally use a good IDE that solves the problem for you. This will also make your code more readable.

Webmaster Forum

Re: php change key function
« Reply #1 on: December 27, 2011, 09:52:45 PM »