substr_count()
functionYou can use the PHP substr_count()
function to find out how many times a given substring is appears or repeated inside a string. Let's try out an example to see how it works:
<?php
$quote = "Try not to become a man of success, but rather try to become a man of value.";
echo substr_count($quote, 'man'); // Outputs: 2
?>
Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]
Laravel 8 Create Multi Language Website
Laravel provides easy way to create mult...Django - How to Create Custom Login Page
Within this article we will look at how...How to use Multiple Databases in Laravel
You already know how to connect MySQL da...Laravel 7.x - Multiple Images Upload with Preview Example
In this article, i will let you ken ajax...How to check if Email already exists in laravel
Register and Login is basic fu...