Object Oriented php (part-2)


In last part of object oriented php i have discussed about various terms on object oriented php, now i am gonna discussed that part as well as new parts on object oriented php in a simple way which will be more easy to understand for all.

Class– A class defines how an object will behave and interact either with each other or with it. It can be think as a template which is consists of summation of properties and methods and behavior of object.

Properties- Properties are the variables inside a class or function.

Method- Methods are the functions inside the class. Continue reading

Posted in Object oriented php | Tagged , , , , , | Leave a comment

Object Oriented PHP (Part-1)


Object Oriented PHP (part-1)

Object Oriented Concepts:

Before we go in detail, lets define important terms related to Object Oriented Programming.
Class: This is a programmer-defined datatype, which includes local functions as well as local data. You can think of a class as a template for making many instances of the same kind (or class) of object. Continue reading

Posted in Object oriented php | Tagged , , , | Leave a comment

C Interview Questions Part 1


C Interview Questions

C interview question: In printf() Function- What is the difference between “printf(…)” and “sprintf(…)”?
Answer: sprintf(…) writes data to the character array whereas printf(…) writes data to the standard output device. Continue reading

Posted in C | Tagged , , , | Leave a comment

jQuery


jQuery is a new kind of JavaScript Library.

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript. Continue reading

Posted in JavaScript | Leave a comment

Java Script (Part-4)


Some simple uses of Java Scripts……

JavaScript Alert

JavaScript Alert Example 1:

<HTML>
<HEAD>
<TITLE>Using alert Boxes</TITLE> Continue reading

Posted in JavaScript | Leave a comment

Java Script (Part-3)


JavaScript Form

Form Basics:

An HTML form is defined by using the
element, which has several attributes:
1. method — Indicates whether the browser should sent a GET request or a POST request
2. action — Indicates the URL to which the form should be submitted
3. enctype — The way the data should be encoded when sent to the server. The default is application/x-www-url-encoded, but it may be set to multipart/form-data if the form is uploading a file. Continue reading

Posted in JavaScript | Tagged , , , | Leave a comment

Java Script (Part-2)


JavaScript Functions

All function declaration must begin with the keyword function followed by the name of the function.
Parentheses are placed after the function name to hold arguments.
If more than one argument are used, use commas to separate the arguments.
If no arguments, leave the space between the parentheses empty.
Curly brackets are used to contain the code related to the function.
Curly brackets are not optional.
JavaScript uses call by value. Continue reading

Posted in JavaScript | Tagged , , | Leave a comment