WPIntell

Source evidence

Pass array PHP code to JS code

Code Manager · support · 2022-04-29T22:06:00+00:00

complaintsentiment
mediumseverity
0.69relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 19 rows with source links

31.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

13 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
akmiecik unresolved
I have a piece of PHP code working fine and dandy but I need to pass an array to JS code for the next step. If I put a script code at the end of the PHP code I can get the array passed to that JS script but it does not pass if that script is a Code Manager LS piece of code. Here’s the array passing script. I use script tags after the ?> in the PHP piece of code but not in the JS piece of code. <script> var passArray = <?php echo '["' . implode('", "', $php_array) . '"]' ?>; document.write(passedArray[0]); </script> Thanks.

Comments

0 shown

No comments were stored for this source.