Jump to content

Recommended Posts

Hello, im new to php and trying to learn. I have tried lots of stuff.

 

I have got 2 questions.

 

Write and test PHP code to calculate the cost of carpet in a room 5.5 metres x 4.0 metres and the cost of carpet at $90 per square metre. Format correctly using the printf function.

 

 

Write and test PHP code that will convert letter "X" to ASCII and convert the ASCII value 88 to the letter it represents.

 

Can someone please tell me the code for these 2 little questions ?

 

Thank you.

 

Link to comment
https://forums.phpfreaks.com/topic/52916-i-have-got-a-question/
Share on other sites

Why are you trying to take on things you aren't ready for? You need to read on how to do the basics that will lead you up to being able to do those problems. There is no point in asking for the answer for everything you can't do...you will never learn that way. So my advice to you  would be to find some beginner tutorials and start reading/practicing.

Link to comment
https://forums.phpfreaks.com/topic/52916-i-have-got-a-question/#findComment-261327
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.