How to get a substring between two strings in php?

In this post we will show you how to get substring between two strings in PHP.

1. Code:

     

2. Example:

Input:

string = "Soltuts.com1234 providing PHP tutorials, tips, tricks";
StringStart = "Soltuts"
stringEnd = "tips"

Output:

Output: ".com1234 providing PHP tutorials, "