Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns
cout($array) Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD -- PHP

Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns
count($array); Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD -- PHP

Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns
Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD count($array); -- PHP

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Terence Kearns
This is a nice easy one :) It couldn't be simpler. Just put empty square brackets (as used in arrays) in front of your checkbox name. The example below assumes you have PHP 4.1 or greater (which uses $_POST to contain form posted data) notice how name=ck[] html head

Re: [PHP] Re: Simple Example of Passing on a file through a PHP script

2002-07-03 Thread Terence Kearns
I have had inconsistency issues when outputing diffrent content-types to IE. It seems to cache the type for a articular file somewhere and deleting temporary files in the usaer agent is no good. I have to shut-down all instances of IE then re-launch it for it to behave like it is supposed to

[PHP] Model View Controller (MVC) frameworks in PHP

2002-07-03 Thread Terence Kearns
I've been developing an open source MVC framework in PHP and it's going OK. However, I wanted to find out about any other frameworks around the place that do a similar thing. I want to see how other people approach this design pattern. Here are my main aims: 1) standardise development patterns