Hi Guys,

I am trying to make a string from an array.The array structure looks like this

[n3] => Array
        (
            [0] => 2011-01-19
            [1] => 2011-01-12
        )

Now if n3[0] or n3[1] is null i mean if any one value is absent then the string should look like

$str = '2011-01-19/2011-01-12' //any one value

if both values are present then

$str >= '2011-01-19' and $str <= '2011-01-12'

Please suggest

Raj

Hi Guys,

I am trying to make a string from an array.The array structure looks like this

[n3] => Array
        (
            [0] => 2011-01-19
            [1] => 2011-01-12
        )

Now if n3[0] or n3[1] is null i mean if any one value is absent then the string should look like

$str = '2011-01-19/2011-01-12' //any one value

if both values are present then

$str >= '2011-01-19' and $str <= '2011-01-12'

Please suggest

Raj

Solved!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.