
Search In
If you have created_at and updated_at columns in the DB table. Rails will automatically set these values when you create and update a model object. There are chances that we have to update the columns without touching these columns.
You can do this
Hi Reader's,
Welcome to FindNerd, today we are going to discuss what is the use of the @ symbol in PHP ?
so basically @ symbol is an "Error Control Operators" and it's works only on expressions.
In other word we can say that this symbol is used
Xamarin is a tool that can be integrated with visual studio for building mobile application using the language you are comfortable with like C#
With Xamarin you can build an Android application, IOS application using the C# code on your backend.
die() function is error handling method in PHP which used to handle a error in web application. It's also used to check whether the function is work properly or not.
<?php
$file=fopen("myfile.txt","r");
?>
If myfile.txt file does not exist,
Welcome to FindNerd. We are going to discuss the in-build functions reset and each. each works like a loop. It returns the current element and move the pointer forward.
reset moves the pointer to first element. Please have a look.
<?php
$salaryAr
String-valued functions return NULL, if the the result's length would be greater than the value of the max_allowed_packet system variable.
The first position of a string (for those functions which operate on string), is numbered 1.
Noninteger argum
foreach() function provides an easy way to scan arrays & exactly do the same thing like for loop, so this function is said to be PHP foreach loop. foreach loop works only on arrays.
Syntax:
foreach ($arrayname as $value) {}
Example: In the be
Hello Reader's If you want to make the mathematic calculations inside the html document, Then by using the JS you can make calculations.
You just have to use the document.write() function.
Lets see it working in the example as below:-
<html&g
Hello Reader's if you want to get the shortest way to get the max value of the given array, Then by using JS you do it fast.
To find the result you have to use Math.max() function.
Lets's see the working example as given below:-
<!DOCTYPE html&
Hi Readers
Recently when I was working in Laravel, I came across an issue. It was regarding the selection of a particular layout as per the logged-in user. I have to show a particular layout according to the role of the user logged-in. When I used e
