Lets suppose I have a PHP file file1.php. Something like this:
<?php
class sqlClass {
public function one { //do something }
?>
Then in other PHP file file2.php, I have this:
<?php
class encryption_class {
public function two { //do something }
}
How can I call the function two which is inside the class encryption_class inside the file2.php from the function one on the file1.php class sqlClass?
encryption_classwithin thesqlClass. Or create a static method or use a singleton pattern.