Welcome Guest, Not a member yet? Register   Sign In
dropdown with multiple
#6

(This post was last modified: 07-27-2018, 05:23 AM by dave friend.)

(07-27-2018, 04:05 AM)Nome Wrote: Thank you, but what is the difference between an example taken from the documentation where the classical array record is used and the reduced record of the array from yours?

The array syntax makes no difference and isn't the point. The point is the use of form_multiselect instead fo form_dropdown.

Creating an array using the array() language construct, e.g.
PHP Code:
array('1' => 'First''2' => 'Second''3' => 'third''4' => 'fourth',) 
or using the short syntax, e.g.
PHP Code:
['1' => 'First''2' => 'Second''3' => 'third''4' => 'fourth',] 
produces the exact same array, the only difference is the code style..

I'm just in the habit of using the short syntax because I like typing less to get the same results. Sorry if that caused confusion.
Reply


Messages In This Thread
dropdown with multiple - by Nome - 07-22-2018, 01:06 AM
RE: dropdown with multiple - by Pertti - 07-22-2018, 01:46 AM
RE: dropdown with multiple - by Nome - 07-26-2018, 12:26 PM
RE: dropdown with multiple - by dave friend - 07-26-2018, 03:09 PM
RE: dropdown with multiple - by Nome - 07-27-2018, 04:05 AM
RE: dropdown with multiple - by dave friend - 07-27-2018, 05:20 AM
RE: dropdown with multiple - by Nome - 07-29-2018, 10:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB