Learn, Share, Build

20
October 12, 2017, at 5:22 PM

I have a call in a method that i want to test like this:

$output = DatabaseClass::retrieveByPK(1);

I need that the static method retrieveByPK() always returns the same output for testing.

READ ALSO
Learn, Share, Build

Learn, Share, Build

How to identify which PHP script that executed the exec or shell_exec command

26
Learn, Share, Build

Learn, Share, Build

i want to compare two values in one php array but the code stops when i compare even when the conditions is true i want to know how can i compare the two values here is my code :

34
Learn, Share, Build

Learn, Share, Build

Is it possible in php not to display "Parse" error on a web page (more like hiding all error including parse error on a production environment)?

40
Learn, Share, Build

Learn, Share, Build

I can't understand this errorI tried all things but can't solve this

29