Suppose we've file name (with extension) as part of string and while displaying to users we want to replace file extension from string.
Here's how we can do this:
[geshifilter-code]
<?php
$snippet = 'Lorem ipsum dignissim interdico meus file.exe dolore ideo.';
echo preg_replace('/\\.[^.\\s]{
Note: Make sure you're enabling this only on development server.
It's very common for any developers to make a mistake while developing, which will result in White Screen of Death (WSOD).
The current project I'm working on has a lot of customization of Drupal Commerce and display of views. One of the customization I've done is while displaying views result, show total of two views results in one view i.e.
Today we're going to see how we can retrieve the payment method settings when ever we required. The payment methods are used to accept the payments from user during Checkout process.
Views module provides the ability to site admin to allow users to select the filters and dynamically refine the results based on selection made. This can be achieved using exposed filters in views.
Starting with WAMP, it allows developers to setup site in their local machine just like we setup on dev or production server. I've installed WAMP in my "C:\" drive.
Today we'll see how to remove the bluetooth devices in Windows 8 or Windows 8.1.
Following are the steps to remove unwanted bluetooth devices from Devices and Drivers listing:
So first thing we need to do is get our cursor to either top-right or bottom-right corner of our