How to create a table on the blog already widely shared on other blogs, but how to create tables that will be presented here are very different and much easier for even novice bloggers who do not understand the HTML language. Generally to create a table on a blog or site used HTML code, but in this article we will learn to create tables by using google documents.
How to create a table in Google documents is the same as creating tables in spreadsheet pogram like Microsoft Office Excel or Open Office Calc. The good news is the table is online and can be pasted in a blog of site.
Another advantage of google documents to create table are :
Showing posts with label object. Show all posts
Showing posts with label object. Show all posts
PHP Function With More Than One Value
PHP Function With More Than One Value
This article will try to explain how to create a function that can return more than one value, or Returning multiple values from function in PHP. The essence of these functions is the use of arrays and list (); function. Here I will try to give an example function that can separate the first name and last name of a person's name. Create a file named value.php or you can give another name that you want.
The contents of the file with:
< ?php
function double_value($fullname)
{
$firstlast = explode(” “, $fullname);
$first_name = $ firstlast[0];
$last_name = $ firstlast[1];
return array($first_name, $last_name);
}
$myfullname = “John Lennon”;
list($myfirstname, $mylastname) = double_value($myfullname);
echo “Full Name : “.$myfullname.”<br>”;
echo “First Name : “.$myfirstname.”<br>”;
echo “Last Name : “.$mylastname ;
?>
The core of its functions :
When a variable used as the contents of the parameter :
double_value ($fullname)
Separate the first and last name by using a space and enter into an array :
$firstlast= explode ("", $fullname);
So that later can be able to access the first name we can use variable $firstlast[0]
and to access last name we can use variable $firstlast[1]
Then do the return value of the form array :
and to access last name we can use variable $firstlast[1]
Then do the return value of the form array :
return array ($first_name, $last_name);
With the list() function take two values that shaped an array :
list ($myfirstname, $mylastname) = double_value ($myfullname);
Then show by using echo function :
echo “Full Name : “.$myfullname.”<br>”;
echo “First Name : “.$myfirstname.”<br>”;
echo “Last Name : “.$mylastname ;
That is one example of the algorithm makes the function can return two values.
PHP Function With More Than One Value
Chat with Google Widget
Chatting with the widgets from Google. Many chat widget scattered around the Internet today. But every widget would vary, ranging from appearance to functionality owned.
Color Scrollbar
Changing the color on the scrollbar CSS
You are diligent surfing'll often come across a web page with color scrollbars colorful. If on this page are colored turquoise scrollbar (see the scrollbar on the right). Maybe you are confused, how to load the scrollbar like that?
Calling JavaScript Functions
Posted by
TopHTML
on 5/10/2011
Labels:
javascript,
object,
tag,
website
/
Comments: (0)
Calling JavaScript Functions
To execute a function, we simply call upon the name of the function followed by an opening parenthesis, arguments (if any) and on the lid with a closing parenthesis.
To execute a function, we simply call upon the name of the function followed by an opening parenthesis, arguments (if any) and on the lid with a closing parenthesis.
Function_Name();
JavaScript Functions
Posted by
TopHTML
on 5/09/2011
Labels:
javascript,
object,
tag,
website
/
Comments: (0)
JavaScript Functions
Function is a subprogram that allows us to run a group of instructions with a simple call to the function name of one or several parts in the body of a program. Subprogram form we call this function is very commonly used in many programming languages (of course with a slightly different way with each other). On the other way a function, also can call itself, is what we call the function recursively (but do not forget to put a special condition that the function can be stopped, if not endanger the sustainability of global programs).
PHP Array Sorting
PHP Array Sorting
The values contained in the array can be sorted, for numeric values are sorted from lowest to highest value while for the string will be ranked from a to z. To sort the values used sort() function with the terms of the array elements are integers, for the array with string element can be used asort() function.
JavaScript Event
Posted by
TopHTML
on 5/06/2011
Labels:
javascript,
link,
object
/
Comments: (0)
JavaScript Event
Event is the action of the user who can produce interactivity, in fact events in JavaScript is a click of a mouse button (the only one action that can be set by the HTML). JavaScript allows to associate the event with some functions of methods such as passage of the mouse pointer over a particular zone, change the value, and so forth.
Event is the action of the user who can produce interactivity, in fact events in JavaScript is a click of a mouse button (the only one action that can be set by the HTML). JavaScript allows to associate the event with some functions of methods such as passage of the mouse pointer over a particular zone, change the value, and so forth.
JavaScript Parameters
Parameters of JavaScript Function
We can pass a parameter in a function, in the sense we give the value or variable name so that the function can be executed based on these parameters. At the moment we pass some parameters into the function, these parameters are separated by a comma, either at the time of declaration or at the time of the call.
See the example below: we will create a JavaScript program that displays a dialog box:
We can pass a parameter in a function, in the sense we give the value or variable name so that the function can be executed based on these parameters. At the moment we pass some parameters into the function, these parameters are separated by a comma, either at the time of declaration or at the time of the call.
See the example below: we will create a JavaScript program that displays a dialog box:
PHP Function
How to make function in PHP
Function or a number of statements that are packed in a name. This name can then be called multiple times in several places in the program.
The purpose of the use of the function is:
The purpose of the use of the function is:
- Facilitate in developing programs
- Reduce the size of the program
To create a function, must follow the syntax as follows:
PHP For
PHP For Repetition
As with other programming languages, PHP also provides the facility to perform repetition. One way is to use a For. Write this example below :
As with other programming languages, PHP also provides the facility to perform repetition. One way is to use a For. Write this example below :
PHP Boolean
PHP Boolean Values
Boolean values are typically used in program control structures, such as if or If-Else. There are several conditions must be in use Boolean values, namely :
Boolean values are typically used in program control structures, such as if or If-Else. There are several conditions must be in use Boolean values, namely :
PHP While
While Repetition in PHP
In addition to the For ', we also can do the loop by using a While.
In addition to the For ', we also can do the loop by using a While.
Here is an example how to use while in PHP :
PHP Array
PHP Array
Array is a type of structured data that is useful to store some of the same type of data. Parts that make up the array called array elements, each element can be accessed separately through the array index.
One-Dimensional Array
Array is a type of structured data that is useful to store some of the same type of data. Parts that make up the array called array elements, each element can be accessed separately through the array index.
One-Dimensional Array
<?
$country[0] = "England";
$country[1] = "France";
$country[2] = "United States";
$country[3] = "Japan";
print ("I live in $country [2]");
?>
JavaScript Object
Posted by
TopHTML
on 3/19/2011
Labels:
javascript,
object,
website
/
Comments: (0)
JavaScript Object
JavaScript treats elements that appear on our navigator window as an object, which means that elements:
JavaScript treats elements that appear on our navigator window as an object, which means that elements:
- Classified according to the hierarchy / level specific so that we can know where the location of the object actually.
- Where we associate with the condition or nature of the special nature (properties)
ASP Variables
ASP Variables
Variables can be declared in VBScript via the key word DIM. Variables do not have a specific type, but is considered as universal (or known as a variable in Visual Basic).
Variables can be declared in VBScript via the key word DIM. Variables do not have a specific type, but is considered as universal (or known as a variable in Visual Basic).
<% DIM I DIM NAME DIM ADDRESS I = 350 Name = "Top HTML" Address = "http://tophtml.blogspot.com" <HTML> The value of the variable I is <% Response. Write (I)%> <% Response.Write (name) Response.Write (address) %> </ HTML>












