Answer the question
In order to leave comments, you need to log in
How to fix Php error when trying to output an array?
Good evening, I can’t set up a normal output of an array from the registration form to the admin panel (displays Array ), swears at
<input type="text" maxlength="40" name="phones" value="<?php echo ((is_array([email protected]$this->_tpl_vars['aData']['phones'])) ? $this->_run_mod_handler('default', true, $_tmp, '') : smarty_modifier_default($_tmp, '')); ?>
Answer the question
In order to leave comments, you need to log in
In order to do something, you need to imagine what you want to do.
This rule is universal, you can't even cook borscht without it, but in programming it is doubly important.
Need. Very. Clearly. Introduce. Yourself. Result. Execution. His. Code.
Therefore, before writing any code, we must first understand what result we want to get from it.
The output of PHP code is usually HTML.
Here also it is necessary to write this HTML. No PHP, just pure HTML.
If it is not clear what kind of HTML we want, then take one step back, understand what kind of visual element on the site we want to make, and learn how to draw it using HTML.
After that, draw the desired HTML, look at it, and decide how to render it in PHP based on the input.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question