remove the decimal of an equation to send to a payment gateway

I have a value currently shows a decimal number

@$amount = $_POST ["amount"];

I need the decimal to show until the $amount variable is sent to the payment gateway

What is the best way to remove the comma from the variable

so an example value

250.59

will be sent as 25059

Thank you

Replace the decimal "." with nothing else using str_replace().

$amount = str_replace(".","",$amount);

best,

Shocker

Tags: Dreamweaver

Similar Questions

  • How to remove the decimal value (. 00) of the slider control

    Please ask me how to remove the decimal value (. 00) of the slider control and Add (if possible) % in after effects cs6.

    I guess you mean to animate text with a slider.

    Add a slider (options for expressions) to your text layer and then add this expression in your Source text:

    x = Math.Floor (effect ("Slider Control") ("Slider"));

    x+" %"

    That's all

  • Remove the decimal point

    Hi all
    I want a query to remove the decimal point in a number.
    That is to say) 3.21 = 321
    .21 = 21
    1 = 1
    76.667 = 76667

    In all this I just want to remove the comma preceding.
    Please help me to write the query

    Thank you
    JO

    TO_NUMBER (Replace(3.21,'.'))

    Kind regards
    Florian...

  • How to remove the password requirement to receive and send e-mail

    How can I remove the requirement to enter a password every time I opened TB and whenever I send an email?

    You can tell Thunderbird to remember the password for you, so you won't have to enter each time.
    Check the box when you get the password.

  • Remove the decimal places in chart

    Anyone know how to remove the decimals in the graphical tool (data window)?

    (Mac, Illustrator CC 2014)

    See you soon.

    Same way as in previous versions. Click the cell style 4th icon and change the number of digits to zero.

  • Two problems of report generation Excel on the decimal point

    Hello good people, I have a problem when you try to generate an Excel report, please see the image below:

    Note that excel removes the decimal separator in the case of the number is > 1 (so that 1 000 becomes 1000) and if the number is<1, excel="" interprets="" it="" as="" a="" text="" string="" (excel="" say="" something="" like="" "the="" number="" in="" this="" cell="" is="" formated="" as="" text,="" or="" is="" preceded="" by="" an="" apostrophe").="" how="" to="" get="" rid="" of="" these="" problems?="" i="" would="" like="" an="" integer="" to="" appear="" as="" the="" same="" integer="" in="" excel,="" and="" any="" number="" less="" than="" one="" to="" be="" interpreted="" as="" a="">

    Thank you very much in advance!

    If I disable the comma localized for this VI, do you think I'll be able to use it as a Subvi without changing the decimal separator of the VI calling parameters?

    My Excel also prefers with a floating point numbers, but I do not understand why numbers lower than that will not be treated as numbers right away?

    Hello OscarJ,

    Unfortunately the position of the decimal point is global, so call VI is affected, too.

    But there are other possible solutions: you can convert your double array in an array of strings. Conversion functions 'number in string' to disable the explicitly localized comma:

    Now, you can add text to your report.

    Your excel seems to interpret "," so that thousands separator and '.' as the decimal separator, so the incorrect number conversion. It seems a little odd since you say he prefers ',' as the decimal separator... There may be something to do with the office report generation tool.

  • Remove the secondary e-mail address

    Q. I noticed that a listed secondary email address which I acknowledge not there. I need to remove this unknown address and add my alternate email address. I can't remove the address that he needs to send verification to this unknown email address.

    Hello

    Who is the provider of mail service?

    I suggest you to contact your e-mail service provider for help.

    Hope the helps of information.

  • When sending an email always remove the original sender, how?

    It is advisable to remove details of the original sender before you send an email. \one may highlight and delete, but the table still remains, including at - it a general command to remove the table and details.

    My older versions of TB has not clearly include this table long, useless info, so it seems like there should be a setting to hide, but I was not able to find it. The fastest I've found is:

        #1 Left-click somewhere in table to select it.
        #2 From menu, select Format/Table/Delete/Table.
    

    Only the '- original message -' line will remain.

  • How to remove the SEND the COMMENTS tab on the bottom of the screen in 10.02

    One with ideas on how to remove the pesky "Send Feedback button in the lower r/corner of the window of Firefox 10.02.

    Hello

    Please try this: click on the "+" after the last tab and Customize. You can now click, hold and drag the widget customize. Customization of

  • When I send an email on Outlook Express, he won't out of the box shipping, but continues to send once a minute until I remove in the Outbox.

    When I send an email on Outlook Express, he won't out of the box shipping, but continues to send once a minute until I remove in the Outbox.

    You have apparent dbx file corruption.

    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.

    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.

    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.

    General precautions for Outlook Express:

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.

    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.

    Compact often as specified above.

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

  • When sending an email, how to remove the list of recipients?

    Hello

    When sending an email with an attachment to several different people, how can I remove the list of all the people I send him. I want it to appear as if he's only a person.not several. Would be grateful for any help

    Thank you very much

    How is this related to Windows Update features, Beverley?

    Put the primary address (or your own) in the field then put all others in the BCC field. See http://email.about.com/od/emailnetiquette/a/cc_and_bcc.htm

  • I need to remove the program files o to send to:

    original title:?

    I need to remove the program files o to send to:

    I need to remove the program files o to send to:

    You want to remove entries from the right-click send to menu?

    If so, click on the round of Windows (start), type shell: sendto and hit enter. To remove a shortcut, right-click and choose Remove.

  • How can I remove the default documents that come with a new Send on behalf of the Signature? (I9, W9, W4, etc..) These are old and obsolete, so I don't want those who will appear for selection.

    How can I remove the default documents that come with a new Send on behalf of Signature (EchoSign)? (I9, W9, W4, etc..) These are old and obsolete, so I don't want those who will appear for selection.

    With the account of the company, you will get an option to remove these forms.

    Pro account you will need to contact the support team EchoSign

    With the free account, it is not possible.

  • Cannot figure out how to remove the recipient's e-mail address when sending mail with Windows 10.

    Cannot remove the e-mail address of the entity to which I address email. I have read the tutorials and instructions and tried all the options of Thunderbird, but I can't find the key to the repression in any Options or advanced settings with the latest version of Windows 10. The illustration of Thunderbird Support for this function does not match my choice of Tools/Options/Advanced/Composition in address book. I'm obviously on something, but I also tried settings/Composition & addressing / Global dial in account preferences.

    You must use the e-mail address of the recipients to send mail. There is no option to use something else that the receiving server will have no idea who 'mother' is only [email protected].

  • How to remove a clip of the scene through an event to send?

    I have a video clip that is added to the scene. There is a Close button on this clip from movie I'd like to close and remove the clip from the stage. But the close button does not work when clicked, nothing happens.


    Here is the flow with the code:

    Add the clip to the scene

    var myPlayCredits:mc_playCredits = new mc_playCredits();

    stage.addEventListener (MouseEvent.MOUSE_DOWN, goButtons);

    function goButtons(event:MouseEvent):void

    {

    If (event.target is Credits_bnt)

    {

    SoundMixer.stopAll ();

    addChild (myPlayCredits);

    myPlayCredits.x = 511;

    myPlayCredits.y = 386;

    }

    This is the code on the button inside the clip that calls the sending

    import flash.events.Event;

    Stop();

    closeCredit.addEventListener (MouseEvent.MOUSE_DOWN, closeCreditPopupScreen);

    function closeCreditPopupScreen (event: MouseEvent): void

    {

    dispatchEvent (new Event ("RemoveMCcredit"));

    }

    Delete (is supposed to remove) the MovieClip from the stage when the user clicks the close button in the MovieClip.

    stage.addEventListener ("RemoveMCcredit", RemoveCreditClip);

    function RemoveCreditClip(e:Event):void

    {

    removeChild (myPlayCredits);

    }

    Anyone have any ideas?

    Why don't you simply assign the event listener for the closeCredit button after you instantiate myPlayCredits and have just the event listener to call the RemoveCreditClip function directly...

    var myPlayCredits:mc_playCredits = new mc_playCredits();

    myPlayCredits.loseCredit.addEventListener (MouseEvent.CLICK, RemoveCreditClip); \

    If you want to use the shipping event approach, try to assign the listener to the mc myPlayCredits, not the scene. (Or set of argument spread of the true event if you assign it to the scene)

Maybe you are looking for