IT Software and web development, Core PHP, JavaScript, JQuery, HTML, CSS, CakePHP, Angularjs, Codeigniter etc.

Read UL and Li By using JQuery and Javascript

On

<!DOCTYPE html><html><head>   <title></title></head><body>  <ul class=”ul-test”>    <li>a</li>    <li>b</li>    <li>c</li>    <li>d</li>  </ul></body></html> JQuery and JavaScript Script <script type=”text/javascript”>//By using JQuery$(document).ready(function(){  $(“.ul-test”).each(function(){     $(this).text();  });}); //By using Javascript- var ulObj = document.getElementsByClassName(“ul-test”)[0].children;for(let i=0; i<ulObj.length;i++){     console.log(ulObj[i]);    document.write(ulObj[i].innerText);}</script>

PHP array_combine() function

On

Array_combine() – use of this function you can combine two arrays for creating one array as key and value pare. Syntax-array_combine(keys, values)There is two params, first one is set of keys and second one is values. Example-<?php$keys=array(“1”,“2”,“3”);$values=array(“one”,“two”,“three”); $array=array_combine($keys,$values);print_r($array);Output//Array ( [1] => one…

error: