PHP
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists PHP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 23rd, 2008, 03:11 PM
Chris Ditty
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Multi-array - What am I missing?

Can anyone point me in the right direction? I know I am missing something
simple, but I can't place my hands on it.

$myCalTime = act_getCalendarDays($config, $myMonth, $myYear);

foreach($myCalTime as $calTime =$calArrayTime){
$calArray[] = $calArrayTime['day']."=>array('NULL','linked-day
".strtolower($calArrayTime['reason'])."','".$calArrayTime['day']."'),";
}

act_getCalendarDays returns this
Array
(
[day] =Array
(
[0] =05
[1] =06
[2] =26
[3] =27
)

[reason] =Array
(
[0] =Vacation
[1] =Vacation
[2] =Vacation
[3] =Vacation
)

)


What am I missing to get this
=>array('NULL=','linked-day ',''),

to look like this
05=>array(NULL,'linked-day vacation','05'),

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists PHP > Multi-array - What am I missing?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
Stay green...Green IT