How To Renew Driver License In Belgium

How To Renew Driver License In Belgium Please use the contact and address information that has been provided under the Office Locations & Contacts section of this page, who should be able to help you with renewing your driver license in Belgium. Required Documents Belgium Driver License Office Locations & Contacts Driving licence Boulevard Anspach, 6 2nd … Read more

How To Register in Population Register (Relative of EU Member) In Belgium

How To Register in Population Register (Relative of EU Member) In Belgium 1.) To sign up, send an email at one of these addresses: vreemdelingenbureau@brucity.be student@brucity.be worker@brucity.be 2.) Go to: Population Service Foreigners’ Office Administration centre Boulevard Anspach 6 3rd floor 1,000 Brussels Map and to Office of liaison in Laeken Boulevard Emile Bockstael 246 1020 Brussels (Laeken)Map … Read more

How To Renew Electronic Identity Card (eID) i Belgium

How To Renew Electronic Identity Card (eID) i Belgium The validity of your eID is 10 years. Once your card expires , you’ll automatically receive a notice card via mail. You need to visit your local Registry Office of your principal location of residence prior to the deadline on the card. In many municipalities, a brand … Read more

How To Rent a Home or Flat In Belgium

How To Rent a Home or Flat In Belgium Use the directions which are given above to rent a home in Belgium and also to be registered at Belgium’s local registry office. This link will provide more information to use : More Information What Are All The Eligibility Anyone who is over the age of the majority … Read more

How to Report Lost Or Stolen Passport in Belgium

How to Report Lost Or Stolen Passport in Belgium If you’re living in Belgium You can call Doc-Stop for a cancellation of your passport and safeguard yourself from any misuse or misuse of the identity you have: 2123. Contact the police station at which the theft or loss was committed or your local municipal office … Read more

How to Report Or Replace Damaged Passport In Belgium

How to Report Or Replace Damaged Passport In Belgium Reporting damaged Passport When your passport’s validity is not more then one year old, or the issue is on the transparent paper that has slipped away, you should call the local authorities (or your consulate or embassy in case you are a resident of another country). … Read more

How To Register an Existing Company In Belgium

How To Register an Existing Company In Belgium Fill out the application form to register a business. Complete the application form with any other necessary documents. Make sure you pay all fees necessary. Documents Required Register an Existing Company The registration form must be completed. The original citizenship identification card of the promoters must be … Read more

How Remove \r\n From String In Php

how remove \r\n from string in php $text = preg_replace(“/\r|\n/”, “”, $text); php remove newline //Replace the newline and carriage return characters //using regex and preg_replace. $text = preg_replace(“/\r|\n/”, “”, $text); Source:thisinterestsme.com string remove line breaks php preg_replace( “/\r|\n/”, “”, $yourString ); Source:stackoverflow.com php remove \t and \n $str = preg_replace(‘/(\v|\s)+/’, ‘ ‘, $str); Source: stackoverflow.com

“Laravel Migration Data Types”

“laravel migration data types” $table->bigIncrements(‘id’); Incrementing ID using a “big integer” equivalent. $table->bigInteger(‘votes’); BIGINT equivalent to the table $table->binary(‘data’); BLOB equivalent to the table $table->boolean(‘confirmed’); BOOLEAN equivalent to the table $table->char(‘name’, 4); CHAR equivalent with a length $table->date(‘created_at’); DATE equivalent to the table $table->dateTime(‘created_at’); DATETIME equivalent to the table $table->decimal(‘amount’, 5, 2); DECIMAL equivalent with … Read more

Laravel Table Data Types

laravel table data types $table->bigIncrements(‘id’); Incrementing ID using a “big integer” equivalent. $table->bigInteger(‘votes’); BIGINT equivalent to the table $table->binary(‘data’); BLOB equivalent to the table $table->boolean(‘confirmed’); BOOLEAN equivalent to the table $table->char(‘name’, 4); CHAR equivalent with a length $table->date(‘created_at’); DATE equivalent to the table $table->dateTime(‘created_at’); DATETIME equivalent to the table $table->decimal(‘amount’, 5, 2); DECIMAL equivalent with … Read more

Php Unset Session Variable

php unset session variable // Destroy a sesion variable name ‘variable_name’ <?php unset($_SESSION[‘variable_name’]); ?> unset session in php session_unset(); //Destrol all session variables

Session Unset

session unset // Destroy a sesion variable name ‘variable_name’ <?php unset($_SESSION[‘variable_name’]); ?> unset session in php session_unset(); //Destrol all session variables learn difference between session unset and session destroy session unset: unset($_SESSION[‘id’]); //remove perticular session variable session destroy: session_destroy(); //remove all session variable

Php Generate Random String Fixed Length

php generate random string fixed length function generateRandomString($length = 25) { $characters = ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’; $charactersLength = strlen($characters); $randomString = ”; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength – 1)]; } return $randomString; } //usage $myRandomString = generateRandomString(5);

Php Parse Float 2 Decimal Places

php parse float 2 decimal places $num = 5; $num = number_format($num, 2); fix to 2 decimal places php return number_format((float)$number, 2, ‘.’, ”); Source:stackoverflow.com php float 2 decimais $foo = “105”; echo number_format((float)$foo, 2, ‘.’, ”); Source: stackoverflow.com

Smarty Assign

smarty assign {assign var=”name” value=”Bob”} {assign “name” “Bob”} {* short-hand *} The value of $name is {$name}. {* Other cool examples *} {foreach $videos as $video} {$video.title_ns = {$video.title|lower|replace:’ ‘:’-‘}} {/foreach} {assign var=”name” value=”somestring_{$item.id}”} Source: www.smarty.net  

Smarty Assign Var

smarty assign var {assign var=”name” value=”Bob”} {assign “name” “Bob”} {* short-hand *} The value of $name is {$name}. {* Other cool examples *} {foreach $videos as $video} {$video.title_ns = {$video.title|lower|replace:’ ‘:’-‘}} {/foreach} {assign var=”name” value=”somestring_{$item.id}”} Source: www.smarty.net  

Disable Admin Bar WordPress

disable admin bar wordpress /* Disable WordPress Admin Bar for all users */ add_filter( ‘show_admin_bar’, ‘__return_false’ ); wordpress make new users not be able to see top bar add_action(‘after_setup_theme’, ‘remove_admin_bar’);   function remove_admin_bar() { if (!current_user_can(‘administrator’) && !is_admin()) {   show_admin_bar(false); } } Source:www.wpbeginner.com remove admin bar wordpress front end /* Disable WordPress Admin Bar for … Read more