» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-02-2006, 04:46 PM
daffy daffy is offline
OSP Starters
 
Join Date: Aug 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
daffy is on a distinguished road
Cool converting 1 asp into PHP

hi

I am a PHP developer and I need to convert 1 asp script into PHP.

Can anyone tell me what is the meaning of it:

redim preserve $departments[ubound($departments)+1]

what is redim and preserve?

I think redim is "initialising again" but what is preserve.

Confused- help- thanks- bye -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-02-2006, 04:48 PM
bruno bruno is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bruno is on a distinguished road
Default

ReDim allows increasing as well as decreasing an array's size.

When using Redim with the Preserve keyword, the old elements are preserved - as copies in the new array.
Hope i was of some help -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 08-02-2006, 04:50 PM
31146dgreat 31146dgreat is offline
OSP Addicts
 
Join Date: Jun 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
31146dgreat is on a distinguished road
Default

Quote:
Originally Posted by bruno
ReDim allows increasing as well as decreasing an array's size.

When using Redim with the Preserve keyword, the old elements are preserved - as copies in the new array.
So, what u mean is resizing the array to be one element larger, keeping the
existing contents -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

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 On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
i can help with php averagejoe Advertise Programming Services 1 02-25-2007 04:48 AM
Modwest Offers Live PHP Tool outsourcingplans Web Hosting News 0 12-16-2006 03:24 AM
Is PHP loosing out to .NET? garcia PHP Programming and Tips 1 08-10-2006 02:44 PM
Recompiling PHP, Fedora 4 jhingalala PHP Programming and Tips 1 07-17-2006 02:47 PM
Getting MySQL & PHP to communicate JCH MySQL Forums 0 05-29-2006 02:52 PM


All times are GMT. The time now is 03:44 PM.