how to create an associative array and it is value is numeric array? [on hold]











up vote
-1
down vote

favorite












I am trying to create an associative array that it is key is the file name of the image and I want to make the value of it as a numeric array, is this the right way to do like that ??



The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL.



I have to displays all thumbnail pictures according to their dimensions and make them clickable as hyperlinks to the URL defined in its value.



<?php


$images['pic1.PNG'] = array(
'width' => 20,
'height' => 20,
'type' => "icon",
'url' => img src="pic1.png"
);









share|improve this question









New contributor




NANA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by billynoah, deceze 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • Can you please clarify exactly what you're trying to do? I don't see the numeric array you want as the value, but what you've posted looks fine (other than the syntax error in the url value from missing quotes)
    – Robbie Averill
    2 days ago










  • The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL. @RobbieAverill
    – NANA
    2 days ago










  • Maybe just fix 'url' => img src="pic1.png" it should be a string. 3v4l.org/UZFXD
    – Lawrence Cherone
    2 days ago










  • is the way of creating the associative and numeric array is correct? or this is just called associative array? @LawrenceCherone
    – NANA
    2 days ago










  • Im not sure I understand what your asking, RTM the docs: php.net/manual/en/language.types.array.php
    – Lawrence Cherone
    2 days ago















up vote
-1
down vote

favorite












I am trying to create an associative array that it is key is the file name of the image and I want to make the value of it as a numeric array, is this the right way to do like that ??



The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL.



I have to displays all thumbnail pictures according to their dimensions and make them clickable as hyperlinks to the URL defined in its value.



<?php


$images['pic1.PNG'] = array(
'width' => 20,
'height' => 20,
'type' => "icon",
'url' => img src="pic1.png"
);









share|improve this question









New contributor




NANA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by billynoah, deceze 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • Can you please clarify exactly what you're trying to do? I don't see the numeric array you want as the value, but what you've posted looks fine (other than the syntax error in the url value from missing quotes)
    – Robbie Averill
    2 days ago










  • The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL. @RobbieAverill
    – NANA
    2 days ago










  • Maybe just fix 'url' => img src="pic1.png" it should be a string. 3v4l.org/UZFXD
    – Lawrence Cherone
    2 days ago










  • is the way of creating the associative and numeric array is correct? or this is just called associative array? @LawrenceCherone
    – NANA
    2 days ago










  • Im not sure I understand what your asking, RTM the docs: php.net/manual/en/language.types.array.php
    – Lawrence Cherone
    2 days ago













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I am trying to create an associative array that it is key is the file name of the image and I want to make the value of it as a numeric array, is this the right way to do like that ??



The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL.



I have to displays all thumbnail pictures according to their dimensions and make them clickable as hyperlinks to the URL defined in its value.



<?php


$images['pic1.PNG'] = array(
'width' => 20,
'height' => 20,
'type' => "icon",
'url' => img src="pic1.png"
);









share|improve this question









New contributor




NANA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am trying to create an associative array that it is key is the file name of the image and I want to make the value of it as a numeric array, is this the right way to do like that ??



The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL.



I have to displays all thumbnail pictures according to their dimensions and make them clickable as hyperlinks to the URL defined in its value.



<?php


$images['pic1.PNG'] = array(
'width' => 20,
'height' => 20,
'type' => "icon",
'url' => img src="pic1.png"
);






php






share|improve this question









New contributor




NANA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




NANA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago





















New contributor




NANA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









NANA

11




11




New contributor




NANA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





NANA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






NANA is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by billynoah, deceze 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as unclear what you're asking by billynoah, deceze 2 days ago


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • Can you please clarify exactly what you're trying to do? I don't see the numeric array you want as the value, but what you've posted looks fine (other than the syntax error in the url value from missing quotes)
    – Robbie Averill
    2 days ago










  • The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL. @RobbieAverill
    – NANA
    2 days ago










  • Maybe just fix 'url' => img src="pic1.png" it should be a string. 3v4l.org/UZFXD
    – Lawrence Cherone
    2 days ago










  • is the way of creating the associative and numeric array is correct? or this is just called associative array? @LawrenceCherone
    – NANA
    2 days ago










  • Im not sure I understand what your asking, RTM the docs: php.net/manual/en/language.types.array.php
    – Lawrence Cherone
    2 days ago


















  • Can you please clarify exactly what you're trying to do? I don't see the numeric array you want as the value, but what you've posted looks fine (other than the syntax error in the url value from missing quotes)
    – Robbie Averill
    2 days ago










  • The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL. @RobbieAverill
    – NANA
    2 days ago










  • Maybe just fix 'url' => img src="pic1.png" it should be a string. 3v4l.org/UZFXD
    – Lawrence Cherone
    2 days ago










  • is the way of creating the associative and numeric array is correct? or this is just called associative array? @LawrenceCherone
    – NANA
    2 days ago










  • Im not sure I understand what your asking, RTM the docs: php.net/manual/en/language.types.array.php
    – Lawrence Cherone
    2 days ago
















Can you please clarify exactly what you're trying to do? I don't see the numeric array you want as the value, but what you've posted looks fine (other than the syntax error in the url value from missing quotes)
– Robbie Averill
2 days ago




Can you please clarify exactly what you're trying to do? I don't see the numeric array you want as the value, but what you've posted looks fine (other than the syntax error in the url value from missing quotes)
– Robbie Averill
2 days ago












The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL. @RobbieAverill
– NANA
2 days ago




The value of the associative array must be a numeric array that contains the picture’s width, height, type (icon, thumbnail or background) and URL. @RobbieAverill
– NANA
2 days ago












Maybe just fix 'url' => img src="pic1.png" it should be a string. 3v4l.org/UZFXD
– Lawrence Cherone
2 days ago




Maybe just fix 'url' => img src="pic1.png" it should be a string. 3v4l.org/UZFXD
– Lawrence Cherone
2 days ago












is the way of creating the associative and numeric array is correct? or this is just called associative array? @LawrenceCherone
– NANA
2 days ago




is the way of creating the associative and numeric array is correct? or this is just called associative array? @LawrenceCherone
– NANA
2 days ago












Im not sure I understand what your asking, RTM the docs: php.net/manual/en/language.types.array.php
– Lawrence Cherone
2 days ago




Im not sure I understand what your asking, RTM the docs: php.net/manual/en/language.types.array.php
– Lawrence Cherone
2 days ago

















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Bressuire

Vorschmack

Quarantine