To add new elements you can use the following JavaScript functions: push() unshift(), concat() function or splice(). See examples.
In this snippet, you will find out how it is possible to add telephone links with HTML. See examples and try to add and style telephone links by yourself.
Read this JavaScript tutorial and learn about the best method of calculating the text width. Read about the advantages of the method over other methods.
This is a short snippet that explains how to check whether a number is odd or even in PHP. Check out the handy methods and examples of our tutorial.
Imagine a given number and you want to check whether it is prime or not with PHP. Here, we represent two methods: a simple method and a more efficient one.
In this tutorial, you will read and learn detailed information about the methods used for converting a float number to a whole number with lots of examples.
Read the tutorial and find several easy and fast approaches to converting a number to a string in JavaScript. Choose the best method for your workflow.
This snippet is dedicated to one of the common PHP issues: how to convert a string to a number. You can easily do that by following the options we provide.
Read this tutorial and find the easiest way of converting the decimal number to hexadecimal in JavaScript. Also, find information about the number systems.
Read this JavaScript tutorial and learn about the methods used to find the minimum and maximum number of elements in an array. Find the fastest solution.