Jump to content

[SOLVED] function from another class


gish

Recommended Posts

Hi

 

am I able to call a method from another class in the same script by doing the following

 

          random_class ($_POST['form_value']);

 

or do  i have to create a object inside the function like i have below

 

          $random_object = new random($_POST['form_value']);

  $random_object ->random_class($_POST['form_value']);

Link to comment
https://forums.phpfreaks.com/topic/136765-solved-function-from-another-class/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.