What's new

PHP Guys pa help naman po kung paano ito sa marunong sa PHP

igopako456

Honorary Poster
Joined
Jan 12, 2021
Posts
240
Reaction
41
Points
185
  1. Create a class that will convert a dollar to peso, the class must accept 1 value as arguments, then output the conversion use constructor and destructor method.

For example

$convert = Convert(2);

Output

2 dollar is equivalent to 100.9 pesos
 

Similar threads

Back
Top