Driver Code
$ X = " OldSite : GeeksforGeeks . org " ; $ Y = " NewSite : GeeksQuiz . com " ; $ m = strlen ( $ X ) ; $ n = strlen ( $ Y ) ; echo " Length ▁ of ▁ Longest ▁ Common ▁ Substring ▁ is ▁ " . LCSubStr ( $ X , $ Y , $ m , $ n ) ; ? >