answersLogoWhite

0

<?php

function calculate_electric_bill( $cost_per_kilowatt, $killowatts_used )

{

return $cost_per_kilowatt * $kilowatts_used;

}

echo calculate_electric_bill( 0.01, 1000 );

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Electrical Engineering
Related Questions

Where can I find free php codes?

Ratinonal program in php


Is php an interpretor?

PHP is in interpreted language, and ships with one, however PHP itself is a program language and not an interpreter.


What is the Malay-utf-8.inc. php file?

This particular file is a file specific to the PHP program or script you are using. It is not a "php system file".


What was the program used to make facebook?

PHP, Html


What program can read php file?

PHP files are plain text, so you can read them with your text editor or IDE of choice.


Is there widget in php?

well, as such there is no Widget in php. You need to write your own widget program if you are interested to develop. You must be aware of wordpress built on php plateform and that uses widget extensively :)


What is the standard wage rate of an electrical engineer in the Philippines?

The average pay for an Electrical Engineer is PHP 249,193 per year.


How run php program in wanp server in window?

Once you install wamp server. Any file with php extenstion like xyz.php you put in www folder will be executed as PHP file.


Photoshop is not the correct program to open the php files How can you remove it to use the correct file?

Assuming you're talking about incorrect default file associations in Windows XP... Right click on the PHP file. Go to Open With &gt; Choose Program. Select Wordpad or your fav PHP IDE and tick the "Always open this type of file with this program" box.


What has the author Deepak Vohra written?

Deepak Vohra has written: 'Ruby on Rails for PHP and Java developers' -- subject(s): Ruby (Computer program language), Java (Computer program language), Web site development, PHP (Computer program language)


How does PHP work?

PHP is a programming language that stands for PHP Hypetextual Processing (recursive acronym). Technically PHP is just a program that lives on your computer which interprets code and executes PHP statements line by line. The PHP interpreter will execute changes to your computer or run-time environment based on the low-level instructions that the programmer issues.


Write a PHP program to check whether the string is palindrome or not?

You can do this: &lt;?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }