0

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

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by prithvi.web
0

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!!!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.