What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-31 04:14:09
string compare in php
<?php $var1 = "Hello"; $var2 = "hello"; if (strcmp($var1, $var2) !== 0) { echo '$var1 is not equal to $var2 in a case&... Add solution -
-
Other 2021-10-21 09:50:07
compare strings alphabetically php
Use strcmp. If the first argument to strcmp is lexicographically smaller to the second, then the value returned will be negative. If both are equal, then it will return 0. And if the first is lexicograpically greater than the second then a positive number... Add solution -
C 2021-10-17 18:57:08
how to search in a file in c
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(int argc, char const *argv[]) { int num =0; char word[2000]; char *string[50]; FILE *in_file = fopen("student.txt", "r"); //FILE *out_file = fopen(... Add solution -
C 2021-10-16 14:51:06
store names and arrange them in ascending order in c
#include <stdio.h> #include <string.h> void main() { char name[10][20], temp_name[10][20], temp[20]; int i, j, n; printf("Only the first letter of the name should be in uppercase\n\n"); printf("enter number of nam... Add solution -
PHP 2021-10-14 19:36:09
return multiple rows from mysqli php and encode JSON
<?php $dashboard_content_token = $_REQUEST["dashboard_content_token"]; $token = "g4"; require(cc_scripts/connect.php); $sql = "SELECT * FROM `dashboard_content`"; $check = strcmp("$token", &... Add solution -
Other 2021-10-13 13:48:05
how to create to register with email in c language
//************************************** // Name: Login Using a Text File in C // Description:While I'm writing my book on C programming I came across with the idea to include in my book topic on File Handling in C. The idea is to write a program usi... Add solution -
C 2021-10-02 17:57:03
replace max digit two integers
#include<stdio.h> #include <stdlib.h> int main() { char sentence[50][50],w1[20],w2[20],l=0,m=0,min=100; int i=0,index1[50],index2[50]; while(scanf("%s",sentence[i])>0) i++; strcpy(w1,sentence[i-2]); strcpy(w2,sentence[i... Add solution -
PHP 2021-10-01 04:28:02
woocommerce checkout manager confirm password
add_filter( 'woocommerce_checkout_fields' , 'add_confirm_password_checkout_field', 10, 1 ); function add_confirm_password_checkout_field( $fields ) { if ( get_option( 'woocommerce_registration_generate_password' ) != 'no' ) return $fields; ... Add solution