How Can I Check if String Contains a Specific Word or Substring?
Let’s say you have a string and you want to check if it contains a specific word, character or substring....
Let’s say you have a string and you want to check if it contains a specific word, character or substring....
Calculating the difference between two dates is not as easy as it sounds. There are a lot of things that...
DatePeriod class Methods in PHP Function Name Function Description DatePeriod::__construct() Creates a new DatePeriod object DatePeriod::getDateInterval() Gets the interval DatePeriod::getEndDate()...
DateTime class Methods in PHP Function Name Function Description DateTime::add() Adds an amount of days, months, years, hours, minutes and...
Arbitrary Precision Maths Functions in PHP Function Name Function Description bcadd() Add two arbitrary precision numbers bccomp() Compare two arbitrary...
Miscellaneous Maths Functions in PHP Function Name Function Description deg2rad() Converts the number in degrees to the radian equivalent hypot()...
Numerical Functions in PHP Function Name Function Description abs() Absolute value ceil() Round fractions up floor() Round fractions down fmod()...
Random Number Functions Functions in PHP Function Name Function Description exp() Calculates the exponent of e expm1() Returns exp(number) –...
Random Number Functions Functions in PHP Function Name Function Description base_convert() Convert a number between arbitrary bases bindec() Binary to...
Trigonometric Functions in PHP Function Name Function Description sin() Sine cos() Cosine tan() Tangent asin() Arc sine acos() Arc cosine...