All Questions
AWSDLis an XML document that describes a web service. It actually stands for Web Services Description Language.WSDL tells about the funct
1. SOAP stands for Simple Object Access Protocol and REST stands for Representation State Transfer.
The in_array() function searches an array for a specific value.
JSONstands for JavaScript Notation and has extended from JavaScript scripting language . JSON format used for serializing and transmitting data over network connecti
The default execution time for php is 30 second.
PHP json_encode() function used for converting value(Objects, array) to JSON format. Its returns the JSON representation of a value on success or FALSE on failure.
This function is used to decoded value from JSON to appropriate PHP type. <?php &nbsp
By default, the maximum execution time for PHP scripts is set to30seconds. If a script runs for longer than30 seconds, PHP stops the scr
HTML stands for HyperText Markup Language. Markup language is used for creating websites and anything that can be viewed in a web browser. The markup tells the We
The <!DOCTYPE> declaration must be placed in your HTML document, before the <html> tag. It gives the instruction to the web browser about what version of HTML the page is writt
HTML version are HTML, HTML+, HTML 2.0, HTML 3.2, HTML 4.0 and the latest version of is HTML 5.
HTML version are HTML, HTML+, HTML 2.0, HTML 3.2, HTML 4.0 and the latest version of is HTML 5.
HTML elements are written with a start tag, with an end tag, with the content in between: <tagname>Hello World</t
HTML tags similar to keywords which is surrounded by angle brackets, for example, for paragraph we can use HTML tag(<h1>). HTML tags mostly comes in pair like, <h1
HTML attribute provide additional information to the HTML Elements. Attributes are always specified in the start tag. For example
No, there are single HTML tags that does not need a closing tag.Examples are the tag and <img> tags
A block-level element always starts on a new line and takes entire space of its parent element (container).Browsers typically display the block-level elemen
An inline element does not start on a new line and only takes up the space bounded by the tags that define the inline element. E
To open a link in new tab or window, use the following html code: CSE SOLVE
include()function gives the warning when specified file not found but all script will be continually executed. require()function
final class is a class that can not be inherited.Its protect the methods of class to be overriden by the child classes.e.g. final class baseclass{public function mymethod
Interface : An interface does not contain any code,it contain only declaration of methods,properties,events. Interfaces allow us to code which specifies which methods a class must have implement . Interfaces defines with the word interface . All methods in interfaces must be publice.g : interface myItem { void Id();string description();string Runtest(int testnumber); } Abstract class : Abstract classes are look like interfaces.Abstract classes may contain code although it may also have abstract method that do not have code. Abstract classes defines only signature of the method ,not implementation. The child class which inherit the abstarct class must define all the abstarct methods of its parent class . e.g abstract class myItem { abstract protected function getitem();abstract protected function setitem(); }
echo() and print() function both are used to show the output on the visitors screen but in echo we can take one or more parameters. print() has a return value of true or false whereas echo has a void return type. echo() is slightly faster than print.
JavaScript is a lightweight, interpreted programming language with object-oriented capabilities that allows you to build interactivity into otherwise static HTML pages. The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers.
Following are the features of JavaScript − JavaScript is a lightweight, interpreted programming language. JavaScript is designed for creating network-centric applications. JavaScript is complementary to and integrated with Java. JavaScript is is complementary to and integrated with HTML. JavaScript is open and cross-platform.
We can not treat JavaScript as a full fledged programming language. It lacks the following important features − Client-side JavaScript does not allow the reading or writing of files. This has been kept for security reason. JavaScript can not be used for Networking applications because there is no such support available. JavaScript doesn't have any multithreading or multiprocess capabilities.
JavaScript supports Object concept very well. You can create an object using the object literal as follows − var emp = { name: "Foyez", age: 21 };
You can write and read properties of an object using the dot notation as follows − // Getting object properties // ==> Foyez emp.age // ==> 20 // Setting object properties = "Foyez" // <== Foyez emp.age = 20 // <== 20
You can define arrays using the array literal as follows − var x = []; var y = [1, 2, 3, 4, 5];
An array has a length property that is useful for iteration. We can read elements of an array as follows − var x = [1, 2, 3, 4, 5]; for (var i = 0; i < x.length; i++) { // Do something with x[i] }
A named function has a name when it is defined. A named function can be defined using function keyword as follows − function named(){ // do some stuff here }
A function in JavaScript can be either named or anonymous.
An anonymous function can be defined in similar way as a normal function but it would not have any name.
Yes! An anonymous function can be assigned to a variable.
Yes! An anonymous function can be passed as an argument to another function.
JavaScript variable arguments represents the arguments passed to a function.
Using typeof operator, we can get the type of arguments passed to a function. For example − function func(x){ console.log(typeof x, arguments.length); } func(); //==> "undefined", 0 func(1); //==> "number", 1 func("1", "2", "3"); //==> "string", 3
Using arguments.length property, we can get the total number of arguments passed to a function. For example − function func(x){ console.log(typeof x, arguments.length); } func(); //==> "undefined", 0 func(1); //==> "number", 1 func("1", "2", "3"); //==> "string", 3
The arguments object has a callee property, which refers to the function you're inside of. For example − function func() { return arguments.callee; } func(); // ==> func
JavaScript famous keyword this always refers to the current context.
The scope of a variable is the region of your program in which it is defined. JavaScript variable will have only two scopes. Global Variables − A global variable has global scope which means it is visible everywhere in your JavaScript code. Local Variables − A local variable will be visible only within a function where it is defined. Function parameters are always local to that function.
A local variable takes precedence over a global variable with the same name.
A callback is a plain JavaScript function passed to some method as an argument or option. Some callbacks are just events, called to give the user a chance to react when a certain state is triggered.
Closures are created whenever a variable that is defined outside the current scope is accessed from within some inner scope.
charAt() method returns the character at the specified index.
concat() method returns the character at the specified index.
forEach() method calls a function for each element in the array.
indexOf() method returns the index within the calling String object of the first occurrence of the specified value, or −1 if not found.
length() method returns the length of the string.