Aller au contenu

bibliogeek

ELK Mémo

#Exemple Input input { file { path => « D:/tmp/test/* » start_position => « beginning » sincedb_path => « NUL » } } #dev tools – list les info des index-pattern… Lire la suite »ELK Mémo

PHP : transmettre un array PHP dans un Javascript

  json_encode($MonArrayPhp) Documentation offciel : https://www.php.net/manual/fr/function.json-encode.php exemple : <?php $MonArrayPhp = array(« test », »test01″, »test02″, »test03″); ?> <script> alert(‘<?php echo json_encode($MonArrayPhp)?>’) ; </script>