sarathi Posted July 30, 2009 Share Posted July 30, 2009 I have tried something like this: $var = array('value1','value2'.strtoupper(.'value3'.).'value4'); but it just makes my other php code fail, and makes a blank page. Does anyone know how to fix this? Thanks. Link to comment https://forums.phpfreaks.com/topic/168063-solved-is-there-a-way-to-put-php-code-in-to-an-array-value/ Share on other sites More sharing options...
patrickmvi Posted July 30, 2009 Share Posted July 30, 2009 Try it like this: $var = array('value1','value2'.strtoupper('value3').'value4'); Link to comment https://forums.phpfreaks.com/topic/168063-solved-is-there-a-way-to-put-php-code-in-to-an-array-value/#findComment-886433 Share on other sites More sharing options...
sarathi Posted July 30, 2009 Author Share Posted July 30, 2009 That works, thanks! [remember to click solved] Link to comment https://forums.phpfreaks.com/topic/168063-solved-is-there-a-way-to-put-php-code-in-to-an-array-value/#findComment-886436 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.