Str_replace how to replace/remove an euro sign

Hi
I hope somebody can help me out.
I have a euro sign which I have to remove before I can send a total price to the Dutch merchant system iDEAL.
I succeed to replace a comma by a dot.
I succeed in replacing a non-dynamic generated euro-sign on my testing machine but
I don't succeed in getting it out of the way on my remote server.
Does somebody see where I go wrong?
<?php
$metKomma = cartweaverMoney($cart["CartTotals"]["Total"]);
$vervangKomma = str_replace(",", ".", $metKomma);
$kommaVervangen = $vervangKomma;
echo $kommaVervangen;
echo "  ";
$vervangtEuro = str_replace("€", "", $kommaVervangen);
$naarIdeal = $vervangtEuro;
echo $naarIdeal;
?>
Yes it could be a little shorter and also the echo's in between are not really needed. Its just to help me find where I go wrong.
Any help is greatly appreciated

Found the answer.
The problem was in the imported codeblock not in the str_replace.
Thanks

Similar Messages

  • How can i get the euro sign on my keyboard

    how can i activate the euro sign on my keyboard

    Have you tried pressing key combination Alt(Option) + 2 - it should give you this € (using a UK keyboard).

  • Help! How can i remove the lock sign on my ipad3? it can't open, rotate or turn to next page because there is a lock sign at the bottom?

    Help! How can I remove the lock sign on my ipad3? it cannot rotate, turn to next page, or even open when it's on standby mode, even when i press the home button it cant open..thanks

    I'm not sure exactly what you are seeing but .....
    If you see a lock icon in the upper right corner of the screen - then the screen orientation is locked.
    Try the side switch above the volume rocker first and see if that unlocks the screen. If that doesn't do it, double tap the home button and swipe to the right and look for the lock icon all the way to the left.
    If the iPad is not responsive and you cannot slid to unlock the screen - try this.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • How to replace/remove/change font color of a character at in output

    Hi all,
    I am using rtf template to get the output of a report, however i have a condition for field "Narratives" where if field A contains 'X', I need to either get rid of the 'X', replace with '' or change the font of X to white.
    Meaning if the output is : My Name is BavaniX
    I need it to look like : My Name is Bavani
    I use the BI Publisher desktop tool to create the placeholders. Highly appreciate if someone could advise me on how to replace with '' or change X to white font or remove the X using the BI desktop tool.
    The placeholder right now looks like this <?(NARRATIVES)?>.
    Thank you.

    if you want to replace also look at
    How to remove underscore in xml tag
    Re: How to remove underscore in xml tag
    Edited by: AlexAnd on Aug 2, 2012 5:55 AM

  • How to replace an expiring self-signed certificate?

    Well, I've successfully (I THINK) replaced two of the three certificates that are expiring.
    First off - 90% of what's in the Security manual concerning certificates is useless to this issue. I don't want to know how the watch is made - I just want to tell time! In fact there is a GLARING typo on Page 167 of the Snow Leopard Server Security Configuration Manual showing a screenshot of the Certificate Assistant in Server Admin that is just plain wrong!
    It's clear there is no way to RENEW the certificate. You have to delete the old one and replace it with a new certificate.
    The issue I have is that with all the services using the certificate, I don't know what the impact to the end-users is going to be when I delete that expiring certificate.
    It appears that a certificate is created automatically when the OS is installed, although I installed the OS Server on a virtual machine and I didn't see where it got created, nor was I given any input during the creation (like extending the expiration date).
    I don't know whether those certificates are critical to the running of the OS or not, but I went through the process of creating a new certificate in Server Admin. I deleted the expiring certificate. Because the two servers on which the expiring certificate was deleted does not have any services running that require a certificate (such as SSL on my mail server), nothing bad seems to have happened or been impacted negatively.
    I did, however, name the new certificate the exact same thing as the old certificate and tried to make sure that the parameters of the new certificate were at least as extensive as the old certificate. You can look at the details of the old certficate to see what they were.
    Here's the "critical" area of the certificate that was "auto-created" on my virtual server. (It's the same as the one on my "real" server.
    http://screencast.com/t/zlVyR2Hsc
    Note the "Public Key Info" for "Key Usage": Encrypt, Verify, Derive. Note the "Key Usage" Extension is marked CRITICAL and it's usage is "Digital Signature, Data Encipherment, Key Cert Sign". Extended Key Usage is also critical and it's purpose is Server Authentication.
    Here's a screenshot of the default certificate that's created if you create a new self-signed certificate in Server Admin:
    http://screencast.com/t/54c2BUJuXO2
    Note the differences between the two certificates. It LOOKS to me like the second certificate would be more expansive than the default issued at OS Install? Although I don't really care about Apple iChat Encryption.
    Be aware that creating certificates starts to populate your server Keychain.
    http://screencast.com/t/JjLb4YkAM
    It appears that when you start to delete certificates, it leaves behind private keys.
    http://screencast.com/t/XD9zO3n16z
    If you delete these keys you get a message warning you about the end of the world if you delete private keys. I'm sorry if your world melts around you, but I'm going to delete them from my Keychain.
    OK, now I'm going to try to create a certificate that is similar to the one that is created at start-up.
    In Server Admin, highlight your server on the sidebar and click the "Certificates" tab in the icon bar.
    Click the "+" button under your existing certificate and select "Create a Certificate Identity". (This is how I created the default certificate we just got through looking at except I clicked through all the defaults.)
    Bypass "Introduction".
    In the "Create Your Certificate" window I set the "Name" as exactly the same as the name of the expiring certificate. I'm HOPING when I do this for my email server, I won't have to go into the services using the certificate and select the new one. On the other hand, naming it the same as the old one could screw things up - I guess I'll know when I do it later this week.
    The "Certificate Type" defaults to "SSL Server" and I think this is OK since that's what I'll be using this certificate for.
    You HAVE to check the "Let me override defaults" if you want to, for example, extend the expiry period. So that's what I want to do, so I checked it.
    In the next window you set the Serial Number and Validity Period. Don't try typing "9999" (for an infinite certificate) in the "Validity Period" field. Won't work - but you CAN type in 1826 (5 years) - that works - Go Figure!??? You can type in a bigger number than that but I thought 5 years was good for me.
    The next part (Key Usage Extension) is where it gets sticky. OF COURSE there is NO DOCUMENTATION on what these parameters mean of how to select what to choose.
    (OK here's what one of the "explanations" says: "Select this when the certificate's public key is used for encrypting a key for any purpose. Key encipherment is used for key transport and key wrapping (or key management), blah, blah, blah, blah, blah blah!") I'm sure that's a clear as day to you rocket scientists out there, but for idiot teachers like me - it's meaningless.
    Pant, pant...
    The next window asks for an email address and location information - this appears to be optional.
    Key Pair Information window is OK w/ 2048 bits and RSA Algorithm - that appears to be the same as the original certificate.
    Key Usage Extension window
    Here's where it gets interesting...
    I brought up the screenshot of the OS Install created certificate to guide me through these next couple of windows.
    Since the expiring cert had "Digital Signature, Data Encipherment, Key Cert Sign" I selected "Signature, Data Encipherment and Certificate Signing".
    Extended Key Usage Extension...
    Hoo Boy...Well, this is critical. But under "Capabilities" it lists ANY then more stuff. Wouldn't you THINK that "ANY" would include the other stuff? Apparently not..."Learn More"?
    Sorry, folks, I just HAVE to show you the help for this window...
    +*The Extended Key Usage Extension (EKU) is much like the Key Usage Extension (KUE), except that EKU values are defined in terms of "purpose" (for example, signing OCSP responses, identifying an SSL client, and so on.), and are easily extensible.  EKU is defined with object identifiers called OIDs.  If the EKU extension is omitted, all operations are potentially valid.*+
    KILL ME NOW!!!
    OK (holding my nose) here I go...Well, I need SSL Server Authentication (I THINK), I guess the other stuff that's checked is OK. So...click "Continue".
    Basic Constraints Extension...
    Well, there is no mention of that on the original certificate, so leave it unchecked.
    Subject Alternate Name Extension...
    Nothing about that in the original certificate, so I'm going to UNCHECK that box (is your world melting yet?)
    DONE!!!! Let's see what the heck we got!
    http://screencast.com/t/QgU86suCiQH
    Well, I don't know about you but that looks pretty close for Jazz?
    I got some extra crap in there but the stuff from the original cert is all there.
    Think we're OK??
    Out with the old certificate (delete).
    Oh oh - extra private key - but which is the extra one? Well, I guess I'll just keep it.
    http://screencast.com/t/bydMfhXcBFDH
    Oh yeah...one more thing in KeyChain Access...
    See the red "X" on the certificate? You can get rid of that by double clicking on the certificate and expanding the "Trust" link.
    http://screencast.com/t/GdZfxBkHrea
    Select "Always Trust".
    I don't know if that does anything other than get rid of the Red "X", but it looks nice. There seem to be plenty of certificates in the Keychain which aren't trusted so maybe it's unnecessary.
    I've done this on both my file server and my "test" server. So far...no problems. Thursday I'll go through this for my Mail server which uses SSL. I'm thinking I should keep the name the same and not replace the certificates in the iCal and Mail service which use it and see what happens. If worse comes to worse, I may need to recreate the certificate with a different name and select the new certificate in the two services that use it.
    Look...I don't know if this helps anyone, but at least I'm trying to figure this idiocy out. At least if I screw up you can see where it was and, hopefully, avoid it yourself.
    If you want to see my rant on Apple's worthless documentation, it's here.
    http://discussions.apple.com/thread.jspa?threadID=2613095&tstart=0

    to add to countryschool and john orban's experiences:
    using the + Create a Certificate Identity button in Server Admin is the same thing as running KeyChain Access and selecting Certificate Assistant from the app menu, and choosing Create a Certificate. Note that you don't need to create a Certificate Authority first.
    in the second "extended key usage extension" dialog box, i UN-checked Any, PKINIT Server Authentication, and iChat Encryption. this produced the closest match to the server's default self-installed certificate.
    when updating trust settings in Keychain Access, the best match to the original cert are custom settings - set Always Trust for only SSL and X.509 Basic Policy.
    supposedly you can use Replace With Signed or Renewed certificate button from Server Admin and avoid needing to re-assign to services. however i was unable to get this to work because my new cert didn't match the private key of the old. for those interested in going further, i did figure out the following which might be helpful:
    you can't drag and drop a cert from Keychain Access or Cert Manager. you need the actual PEM file. supposedly you can hold down the option button while dragging, but this didn't work for me. however you can view the certificates directly in etc/certificates. but that folder is hidden by default. a useful shortcut is to use Finder / Go To Folder, and type in "/private/etc/certificates"
    now, on my system the modification date was the same for old and new certificates. why? because it seems to be set by when you last viewed them. so how do you know which is which? answer: compare file name to SHA1 Fingerprint at bottom of certificate details.
    after you delete the old certificate, it will disappear in Keychain Access from "System" keychains. however in "login" keychains the old one will still be there but the new one won't. it seems to make sense to delete the old one from here and add the new one. somebody tell me if this is a bad idea. the + button does not work easily for this, you need to drag and drop from the etc/certificates folder.
    lastly, the "common name" field is the server/host name the client will try to match to. you can use wildcard for this, e.g. *.example.com. if you need to, you can use the Subject Alternate Name to provide an alternative name to match to, in which case the common name field will be ignored, which is why by default the dNSName alternate field defaults to the common name. more info here: http://www.digicert.com/subject-alternative-name-compatibility.htm.
    maybe that's hopeful to somebody. but i stopped there since things seem to be working.
    last note, which you probably know already - if you don't want to bother installing the certificate in your client computers and phones, you can select Details when the first trust warning pops up and select Always Trust.
    now, we'll see how everything works once people start really using it...

  • How you can remove the lock sign from the top right status bar in IOS 7

    I recently noticed a lock sign on the top right next to my battery , I use to turn it off in IOS 6 but since upgraded to IOS 7 i can't find the option to close it .
    Can you please help !!
    Thanks

    The sign means you have Rotation lock on.
    Open control center and look for the same icon there on the right side edge.  To open control center swipe up from close to the bottom of the screen.

  • Type euro sign on Windows 7 64-bit Lenovo X201

    Hi,
    The subject says it all: how do I type a Euro sign on my Lenovo X201, Windows 7, 64-bit. It is a US keyboard.
    I have tried Alt+4, Alt+5, Alt+e, etc, ....
    Thanks.
    Solved!
    Go to Solution.

    For others with this problem, there are a couple solutions. First you can use the ALT codes, but this requires a separate numeric keypad (not the numbers along the top of a laptop). Instructions for that are here.
    With a laptop you need to use one of the alternate methods here.
    Or if you are using Firefox or PaleMoon you can use this addon. The last is my favorite because it allows you to use characters from any language, including extended characters, with no need to lookup a code.  Here is the Euro € and it took 2 mouse clicks.
    Hoov
    Microsoft MVP - Consumer Security
    SpywareHammer.com

  • How do I remove an incorrect apple ID from an iPad and replace it with the correct one?

    How can I remove an incorrect Apple ID from my ipad and replace it with the correct one?

    Hello Shy guy,
    You can try this:
    1. Go to the iTunes Store or App Store
    2. Scroll down, there you will see Apple ID: "your email" (below Redeem and Send Gift)
    3. Tap on that button
    4. Tap on Sign Out
    Now you should be able to use another Apple ID.
    Cedric

  • How do I remove my old Apple ID and replace with a new one

    How do I remove my old Apple ID on my IPhone and replace it with my new Apple ID to match with my iPad

    Go to Settings>iTunes & App Store>Apple ID. Tap the old ID and sign out. Then sign in with the new ID.

  • How do I remove the previous owner's Apple ID from my 2nd hand iPhone, and replace it with my Apple ID?

    How do I remove the previous owner's Apple ID from my 2nd hand iPhone, and replace it with my Apple ID?

    settings - appstore - view id - log out and log in with your id.

  • How-can-i-remove-my-skype-name-from-the-sign-in-sc...

    Guys this is absolute rubbish feature of the login application where people's login names get recorded in the dropdown menu. Is there any more permanent way of getting rid of this annoying privacy intrusive "feature"? I would like to have a profile with a username that is not going to appear at airports and my grandma's laptop after I log out of skype and no I do not want to go digging for app files to remove my entire history on each and every machine I use as suggested by your help files. Could you please advise if I'm missing something here?
    https://support.skype.com/en-gb/faq/FA11070/how-can-i-remove-my-skype-name-from-the-sign-in-screen-i...

    Unfortunately, the option to remove that feature is not available.  
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • I have a late 2008 Macbook Pro last updated to Mavericks OS.  The screen died and it's not worth replacing.  How do I remove the hard drive and use a drive sled to access info I need?

    I have a late 2008 Macbook Pro last updated to the Mavericks OS.  The screen died and I took it into an Apple store and was told replacing the screen and the hardware to repair everything would cost almost as much as buying a new laptop or a cheaper model.  I was told that I can use a drive sled to access data I need on my hard drive. How do I remove my hard drive and use a drive sled to get to the information I need?  What makes matters more complicated is I need to update my iPhone and my iTunes/App store purchases.  How can I accomplish this?
    My wife has a late 2008 Macbook Pro as well, which I am assuming I need to run my hard drive.  Is there a way to just access just my hard drive without interfering with hers?
    I know this is lengthy.  Thanks to whoever looks at this and offers advice/instruction.

    the device you need is an External enclosure for a 2.5" (laptop form factor) SATA drive.
    A USB-interface enclosure will be slow, but is adequate for this task and for re-purposing as a backup drive later.  A firewire-interface drive would be faster, but is harder to find, more expensive, and faster than needed for this purpose.
    The drive will mount as an "extra" drive on your wife's Macbook, and you can drag and drop whatever you wish. You could create a separate Account for yourself on her computer, and use Migration Assistant or just copy your stuff over to the new account. Then it would not interfere with her files.

  • How do I remove my apple id from my iPad and replace it with a new one

    How do I remove my Apple ID and replaces it with a new one on my ipad

    Have you changed your email?   And need to change your Apple ID as well?
    Before you go further.   Please READ and understand these articles from Apple about your Apple ID. 
    http://support.apple.com/kb/HT2204
    http://support.apple.com/kb/HT5621
    If you are giving the I
    Pad to someone else, you need to turn off find my iPhone and erase the iPad, or delete it from your cloud account.
    If there is another reason , I didn't mention, please fill us in so we can give you the right answer, rather than guess and cause you more headaches.

  • How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it?

    Hi there,
    How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it?
    It is not convenient to remove it every time I sign a document. So, is there a way to turn this off?
    Thank you

    I think you cannot, because for many people it is so important to keep the unsigned document, and most do not realise this until it is too late.

  • WDS: How to replace or remove a device GUID?

    We have a number of computers that are registered in WDS so they are auto-named when imaged. Though, as they age I am having to move hardware around to rapidly fix failed power supplies, etc.
    I've run into a problem, trying to reuse a computer that was used somewhere else, where it previously had its GUID registered, but now I need to assign its GUID to a different computer name in Active Directory, and I am not allowed to do it:
    wdsutil /set-device /device:EL900-MUSIC-D /id:4C4C4544-0032-3010-8053-C2C04F354A31
    WDSUTIL has detected duplicate GUIDs in Active Directory. The duplicate computers are:
    Name: E205-SB
    DN: CN=E205-SB,OU=Computers - EL Staff,DC=XXXX,DC=YYYYY,DC=ZZZZZZ
    MAC/GUID: 44454C4C320010308053C2C04F354A31
    Referral server:
    Boot program:
    WDS client unattend file:
    Boot image path:
    Join domain: Yes
    An error occurred while trying to execute the command.
    Error Code: 0xC1040134
    Error Description: A computer with the same GUID already exists.
    Looking through the commands for wdsutil, it is very odd because there is only a "/set-device" command. There is no "/replace-device" or "/replace-GUID" or "/delete-device" or "/delete-GUID" commands.
    So how do I remove or replace the GUID in the conflicting AD Computer object, without completely deleting the Computer object and rejoining the other machine to the domain? 

    Hi,
    The article described the reason that cause duplicate GUID and how to remove duplicate GUID:
    Managing Duplicate Microsoft Systems Management Server Unique Identifiers
    http://technet.microsoft.com/en-us/library/cc917513.aspx
    Hope this helps.

Maybe you are looking for