Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP Noob Question :$

Featured Replies

I Want To Make A File That I Can Change What Each Value Of The Keyboard Is... So Like Changing "L" To "☺" Or "T" To "♦", Etc... I Would Want This To Do So On Every Element On The Page. I Know It'd Work For All Text Boxes, But I'm Not So Sure If It'd Work For Elements Coded In Flash? (Which Is What I'm Trying To Do) All Help Is Appreciated - Thanks!!!

  • Author

I Want To Make A File That I Can Change What Each Value Of The Keyboard Is... So Like Changing "L" To "☺" Or "T" To "♦", Etc... I Would Want This To Do So On Every Element On The Page. I Know It'd Work For All Text Boxes, But I'm Not So Sure If It'd Work For Elements Coded In Flash? (Which Is What I'm Trying To Do) All Help Is Appreciated - Thanks!!!

 

 

Bump!

That is something for Javascript.

You should be able to create a script with the letter code to change it functions.

 

But why would you actually want to do that?

  • Author

That is something for Javascript.

You should be able to create a script with the letter code to change it functions.

 

But why would you actually want to do that?

 

Personal Reasons. So Can You Help? Or Is That All You're Going To Do? I Know This Can Be Done In PHP Too, Which Is What I'm Going For...

Edited by Stripes-_-B3llatr1x

So Can You Help? Or Is That All You're Going To Do?

That sounds abit rude..

 

Anyway, you could use the PHP function str_replace().

 

Something like..

 

<?php
$string = "I love Samus.";

echo str_replace("love","<3",$string);
?>

 

Should change "I love Samus" to "I <3 Samus".

Edited by Samus

as rallport said the code posted will get messy eventually, you will want atleast an array of inputs and their replacements and prob put through a for loop or function to do each one, could do thousands of replacements in 5lines of coding

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.