Blog Archives

forEach vs for loop in javascript


I tried the  run the javascript array in forech and for loop and i faced the issue like undefined in forech loop . Example foreach Loop: Example For Loop: any solution for foreach  and Please share your experience in it.

Tagged with: , , , , ,
Posted in javascript

how to convert column data in text or csv file into array in php


The data present in a text file or csv file.so we have total of six column. 19738424064    +19096060558    2012-05-01 09:04:17    2012-05-01 09:05:44    120    0.008 19738424064    +19096060558    2012-05-01 12:01:52    2012-05-01 12:19:17    1080    0.072 19738424064    +19096060558    2012-05-01 14:27:30    2012-05-01 14:27:45    60    0.004

Tagged with: , , , , , , , , ,
Posted in google chart, php

create line chart by using google chart api and php


phplinechart.php as code load google visualization and jquery to post and get value in json. <html>   <head> <script src=”http://code.jquery.com/jquery-1.10.1.min.js”></script&gt; <script src=”http://code.jquery.com/jquery-migrate-1.2.1.min.js”></script&gt;     <script type=”text/javascript” src=”https://www.google.com/jsapi”></script&gt;   <script type=”text/javascript”>       google.load(“visualization”, “1”, {packages:[“corechart”]});       google.setOnLoadCallback(drawLineGraph);     function drawLineGraph()              {

Tagged with: , , , , , , , , , ,
Posted in google chart

extract or get first string from current url in php


$url =”$_SERVER[‘REQUEST_URI’]”; or $url=”https://ephptutorial.wordpress.com/category/internal-messaging-system-in-codeigniter/&#8221;; $path = $url); $newpath = $path[‘path’]; $new = explode(‘/’,$newpath); echo $new[2];// Result: category

Tagged with: , , , , , , ,
Posted in extract or get first string from current url in php
Follow Tutorial on WordPress.com
categories
Calendar
November 2017
M T W T F S S
« Sep    
 12345
6789101112
13141516171819
20212223242526
27282930  
Follow me on Twitter
Blog Stats
  • 76,471 hits