Nitish Kumar
Recent Posts by Nitish Kumar
Check if String Contains a Specific Word or Substring in JavaScript
Let’s say you have a string and you want to check if it contains a specific word, character or substring. In this article, you will learn about different ways in which you can perform the check using JavaScript. Here are a few variables that we are going to use: JavaScript var theString = “I have […]
Trigonometric Functions in PHP
Trigonometric Functions in PHP Function Name Function Description sin() Sine cos() Cosine tan() Tangent asin() Arc sine acos() Arc cosine atan() Arc tangent atan2() Arc tangent of two variables asinh() Inverse hyperbolic sine acosh() Inverse hyperbolic cosine atanh() Inverse hyperbolic tangent deg2rad() Converts the number in degrees to the radian equivalent rad2deg() Converts the radian […]
How Can I Resize an Image Programmatically in PHP?
If you are working on a website or project which deals with images, there will most probably come a time when you will have to programmatically resize those images. Maybe you have to create three different sizes of the same image to serve on different devices. Maybe you need to resize images that your users […]
How Can I Read a Large File Line by Line in PHP?
Every now and then, you will have to read and process a large file in PHP. If you are not careful when reading a large file, you will often end up exhausting all the memory of your server. However, there is no need to worry because PHP already provides a lot of inbuilt functions to […]
How Can I Remove the First or Last Character from a String in PHP?
Every now and then, we have to deal with strings which contain unwanted characters either at their beginning or the end. PHP provides a lot of methods which can be used to remove these characters. Each of them has its advantages and disadvantages. In this tutorial, we will discuss all these methods in detail so […]