function - Adding / grouping classes in php -


I'm integrating a built library

My main issue is that I'm completely It is not known how to use or even reference these sections. Here's what I have done, but I get an error (listed below) and my PHP reporting is on

error

  Fatal error: class 'Dave Child \ textstatics \ Textstatics / Users / Mac3 / Documents / Sites / Text -Statistics-Master / Ind.xp.pp did not match in line 10  

And here's a simple The code is

  ini_set ('display_errors', 1); Error_reporting (~ 0); Use \ DaveChild \ TextStatistics as TS; $ Textstatics = new TS \ textstatics; $ Text = 'Quick brown fox to jump on a celestial dog.'; Echo 'flesch-kincaid easy to read:' $ TextStatistics- & gt; FleschKincaidReadingEase ($ text);  

And the location of my file which is index.php is in the main directory. So if I need to include class or reference, then I have to link it like this

  src / dev child / textstatics  

for your input thanks a lot!

I think you need to include class files or

 < Code> "path is required" /to/Class/class.php ";  

and then instanciate

  $ textStatistics = new TextStatistics ();  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -